Tuesday, November 17, 2009

HTML Snippet: Anchor 'NAME'

The name attribute of anchor ( <a> ), creates a named anchor in a HTML document. This allows, direct navigation to any location in a HTML document, from external URLs. It also allows for, easy reading of long documents.

For example, to reach the bottom of a HTML page, the following code is written at bottom
Usage:
    <a name='Bottom'></a>
The Syntax of the URL to reach this location is

http://---complete URL----/#Bottom

No comments:

Post a Comment