link or hyperlink is a connection that allows you to move from one page to another. Link may be text, image, video or any other Html element.
<a href="https://www.codingpk.com">Visit our Website Codingpk</a>
When you bring cursor on link or hyperlink hand icon appears and link become underlined.
Unvisited link is underline and blue. Visited link is underline and purple. Active link is underline and red. Note:You can change color of the link.
Starting tag for link is . Closing tag for link is .
<a href="URL">Text For Link</a>
href attribute specify destination address.
You can use image as link.
<a href="https://codingpk.com/Post/Tutorial/learn_html_in_short_cource">
<img src="" alt="HTML tutorial" style="width:100px;height:100px;border:0;">
</a>
The target attribute define where to open the linked document. Its value can be:
<a href="https://codingpk.com/Post/Tutorial/html_links" target="_blank ">
Visit our Website Codingpk</a>