HTML Attributes
HTML Attributes
- All HTML elements can have attributes
- Attributes provide additional information about elements
- Attributes are always specified in the start tag
- Attributes usually come in name/value pairs like: name="value"
The href Attribute
The <a> tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to.
Example
<a href="https://www.tricode.com">Visit Tricode</a>
Click on the "Try it Yourself" button to see how it works.
Try it Yourself »