The title attribute provides additional details about an element, commonly displayed as tooltip text when the cursor hovers over the element.
Example
<a href=”https://www.code7school.com/courses” title=”Go to code7 course section”>Visit Tutorial’s</a> |
Click to Learn
Absolute URLs and Relative URLs
Example
Link to a webpage using the complete URL:
<a href=”https://www.code7school.com/courses”>Tutorial’s</a> |
Chapter Summary
- Employ the <a>
tag to create a hyperlink.
- Utilize the href attribute to specify the URL of the link.
- Apply the target attribute to designate the opening location for the linked content.
- Incorporate an
<img>
tag within an <a>
tag to make an image function as a link.
- Implement the ‘mailto:‘ protocol within the href attribute to initiate the user’s email client when the link is clicked.