The Anchor Tag & Href Attribute in HTML

Started by sajiv, Aug 18, 2008, 07:05 PM

Previous topic - Next topic

sajiv


HTML uses the anchor (<a>) tag to create a link to another document.
An anchor can point to any resource on the Web: an HTML page, an image, a sound file, a movie, etc.

The syntax of creating an anchor:

<a href="url">Text to be displayed</a>
The <a> tag is used to create an anchor to link from, the href attribute is used to address the document to link to, and the words between the open and close of the anchor tag will be displayed as a hyperlink.

:acumen