A (HTML element)

From Wiki @ Karl Jones dot com
Revision as of 18:20, 20 April 2016 by Karl Jones (Talk | contribs) (Examples)

Jump to: navigation, search

In HTML, a (for "anchor") represents a hyperlink.

Examples

Link to a Microsoft Word document

Link to a Microsoft Word document by setting the link's href attribute to the name of the Word document:

<a href="filename.docx">Download Word document</a>

In this example, the Word document is in the same folder as the web page containing the link.

If the Word document is located elsewhere, modify the href attribute to specify the path to the document.

See also

External links