fabs Posted April 22, 2009 Share Posted April 22, 2009 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 More sharing options...
Synook Posted April 22, 2009 Share Posted April 22, 2009 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 More sharing options...
fabs Posted April 26, 2009 Author Share Posted April 26, 2009 thanks man i see what you mean Link to comment Share on other sites More sharing options...
fabs Posted April 26, 2009 Author Share Posted April 26, 2009 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. Link to comment Share on other sites More sharing options...
thescientist Posted April 26, 2009 Share Posted April 26, 2009 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 More sharing options...
fabs Posted April 27, 2009 Author Share Posted April 27, 2009 thanks man Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.