HTML Links and Anchor Tag
The <a> HTML element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.
Content within each <a> should indicate the link's destination.
<a> tag:
<a> tag stands for anchor tag. It also have a closing tag <a></a>. It contains href attribute to address the file. Under the anchor tag we can write whatever we want. For Example:
<a href="www.junaidcoder.blogspot.com">My Blogs</a>
Output:
link tag:
link tag is used to add link to our website and it is also used to add link code files.
For Example:
<link rel="stylesheet" href="styles.css">
<!--------the link connect with to the styles.css file or another HTML file---->
If you want to check the anchor tag with more attributes then link is given below: https://www.w3schools.com/tags/tag_a.asp
Useful
ReplyDelete