Welcome visitor
* Login
* Register
It is currently May 20th, 2019, 6:41 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  href="#"
PostPosted: July 14th, 2009, 12:51 am 

Posts: 26
i was looking at the code of some post on another forum and found this peculiar line
<a href="#">link</a>

can someone explain it to me a bit please?


Top
 Profile  
 
  Re: href="#"
PostPosted: July 14th, 2009, 1:05 am 
User avatar

Posts: 44
Quote:
<a href="#">link</a>

is used to redirect to the same document. this practice is used with snippets to avoid the Page could not be found error.

in anchors its used to redirect to an specific part of the document
Quote:
<a href="#top">^</a>
will take you to the top of the document if you have previously named as "top" the upper part of that document, whereas
Quote:
<a href="http://www.thesite.org/policy.htm#bottom">Go to the bottom of the policy</a>
will take you to the bottom part of the document called "policy" on "www.thesite.org" website.


http://www.scriptingok.com/tutorial/HTML-links-3


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron