When writing in HTML, the tag is used to create a link between a web page and an external resource. It is useful for defining a framework for navigation purposes or, more typically, linking a CSS file to adjust the layout and appearance of a website. The following sections contain information about this tag, including an example of its code, and related attributes and browser compatibility.
Example code
Attributes
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the tag, and a description of each.
- Example code
- Attributes
- Deprecated attributes
- Compatibility
- Related information
Deprecated attributes
A deprecated attribute is one that may function currently but is not supported in going forward. While the attribute may work with the current version of HTML, it will eventually be phased out. It is better to avoid using these attributes to help future-proof your website.
Compatibility
Browser, Code, Compatibility, Encode, Icon, URL, Web design terms
Related information
- HTML and web design help and support.