Examples of tag
- Examples of tag
- Example result
- Attributes
- Deprecated attributes
- Compatibility
- Related information
Relative link example
Absolute link example
With the absolute link example, unless the page changes on Computer Hope, it’s valid regardless of where it’s placed.
The example is a relative link, which means that unless the file “html.htm” existed in the same directory you would get a 404 error. This file exists on our server, so the link works, but if you used the same example on your computer you would get an error. If you wanted to point to the file on our server from your computer, you would use the absolute link example. Further information about absolute and relative paths and links is on our absolute path definition.
Example result
Below is an example of a link created using the tag.
HTML
Attributes
In an HTML tag, attributes dictate certain aspects of an HTML element. Attributes are made up of a name and value pair. All HTML tags support standard attributes. The following table contains the available HTML attributes for the tag with a description.
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, Compatibility, Container tag, CSS, Nofollow, URL, Web design terms
Related information
- How to create an HTML link on a web page.
- How to create links to sections on the same page in HTML.
- How to create an HTML push-button link.
- How to create a link that opens a new web page window or tab.
- Make link prompt visitor to download .PDF, .DOC, or other files.
- HTML and web design help and support.