HTML Anchor
The Anchor has two important functions in HTML. First it is the main method for interlinking HTML documents and non-HTML media using the href attribute. It can also be used to jump to a location within a HTML document using the id attribute.
1 | <a href="http://www.bbc.co.uk">BBC Online</a> |
The hash # symbol can be used to jump to any element with an ID attribute. The link below will jump to to the top of the current page, which has an attribute id=”header”.
1 | <a href="#header">Jump to Page Header</a> |
Related Posts
Post Information
Written on 18 October 2009 at 9.30 pm, by Keith Greer. "HTML Anchor" was posted in HTML with the tags anchor, HTML, XHTML . Comments Off
Social Networks: Facebook, Twitter, Google Bookmarks, del.icio.us, StumbleUpon, Digg, Reddit, Posterous.
















