# href attribute

Type: | action
Inherited: | no
Used By: | bookmark, All block elements
Default: | none

Specify the action to perform when this link is clicked. This can be a standard hypertext link, a link to elsewhere in the document, or a link to an internal function or JavaScript method. For more information see the "action" attribute type.

Here are some of the different types of action

    <a href="http://bfo.com">An HTTP link</a>
    <a href="#Chapter1">An internal link to a the element with the id of "Chapter1"</a>
    <a href="pdf:Print">A "named" action to print the document</a>
    <a href="javascript:app.alert('A JavaScript Alert)'">A JavaScript action</a>