The information on this page is based on HTML version 4.01 (which is the current version of HTML). The next version, HTML 5, is currently being written. Here's a list of HTML 5 tags.
The HTML a tag is used for creating a hyperlink to either another document, or somewhere within the current document.
You can use the a tag to link text or images. To link an image, simply nest your img tag inside the a tag.
| Example | Killer Ab Workout |
| Attributes: | | Attributes specific to this tag: | | Attribute | Description | | name | Marks an area of the page that a link jumps to. | | href | Specifies the URL of a page or the name of the anchor that the link goes to. | | hreflang | Language code of the destination URL | | type | The type of content at the link destination | | rel | Describes the relationship between the current document and the destination URI. - alternate
- appendix
- bookmark
- chapter
- contents
- copyright
- glossary
- help
- home
- index
- next
- prev
- section
- start
- stylesheet
- subsection
| | rev | Describes a reverse between the destination URI and the current document. Possible values: - alternate
- appendix
- bookmark
- chapter
- contents
- copyright
- glossary
- help
- home
- index
- next
- prev
- section
- start
- stylesheet
- subsection
| | charset | Defines the character encoding of the linked document. | | Other Attributes: | | Attribute | Description | | shape | Image map shape | | coords | Image map coordinates | | target | Specifies the target frame to load the page into. Possible values: | | accesskey | Access keys (or shortcut keys) | | dir | Specifies the direction of the text | | class | Document wide identifier. | | id | Document wide identifier | | lang | Language code | | tabindex | Helps determine the tabbing order (when the user 'tabs' through the elements on the page). | | title | Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip"). | | style | Inline style (CSS) | | onfocus | Intrinsic event (see event handlers) | | onblur | Intrinsic event (see event handlers) | | onclick | Intrinsic event (see event handlers) | | ondbclick | Intrinsic event (see event handlers) | | onmousedown | Intrinsic event (see event handlers) | | onmouseup | Intrinsic event (see event handlers) | | onmouseover | Intrinsic event (see event handlers) | | onmousemove | Intrinsic event (see event handlers) | | onmouseout | Intrinsic event (see event handlers) | | onkeypress | Intrinsic event (see event handlers) | | onkeydown | Intrinsic event (see event handlers) | | onkeyup | Intrinsic event (see event handlers) | |
| Try it yourself! | |
No comments:
Post a Comment