Jump to content

Asking For Html Link


fabs
 Share

Recommended Posts

Hai. i have read a tutorial about html link in http://www.w3schools.com/html/html_links.aspand i dont understand about the text belowBasic Notes - Useful TipsAlways add a trailing slash to subfolder references. If you link like this: href="http://www.w3schools.com/html", you will generate two HTTP requests to the server, because the server will add a slash to the address and create a new request like this: href="http://www.w3schools.com/html/"could you help me, what does the text above means??? :)

Link to comment
Share on other sites

Say you writing the page at http://mysite.com/, and you want to create a hyperlink to a location at the folder "dir", which is a subfolder of http://mysite.com/. The correct way to write the URL for this location is http://mysite.com/dir/, with the forward-slash "/" at the end. If you created a hyperlink that pointed to http://mysite.com/dir, the browser would first look for a file called "dir" inside http://mysite.com/, and upon not finding it would then attempt to go to the subdirectory "dir/" - which wastes time.

Link to comment
Share on other sites

hai man , i also dont understand this one. could you help me???Named anchors are often used to create "table of contents" at the beginning of a large document. Each chapter within the document is given a named anchor, and links to each of these anchors are put at the top of the document.If a browser cannot find a named anchor that has been specified, it goes to the top of the document. No error occurs.

Edited by fabs
Link to comment
Share on other sites

take the quotes example, and you literally have a table of contents that you want to display on a page. You might have a list for a bunch of sections, I-X, and you have all the relevant material (text) also on the same page. So if you have a lot of material on one page and you want to break it down so you can "bookmark" each section within the page, you can use named anchors so if someone clicked on Section IV, it would take them to where section IV is in on your page.essentially, it just allows you to link in-page.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...