HTML <a> Tag | <a> Tag Attributes | Everything you need to know!
The <a> tag (anchor tag) is an HTML element that is used to create a hyperlink on the website. This hyperlink is used to link from one page to another page.
something about myself
Hello Everyone! Welcome To Frontend Everything Blog. Here I daily share web development tips/tricks and astounding projects. Today I am going to clear all doubts of anchor tag in HTML so let's get started.
<a> tag Attribute
href: used to link one page to another page or a relative reference.
download: used to specify the target link to download when the user clicks on the hyperlink.
href lang: used to specify the language of the linked document.
name: used to target an anchor name. it is not supported by HTML5.
media: used to specify the linked media.
rel: used to specify the relationship between the current document and the linked document.
type: used to specify the type of links.
target: used to specify where to open the linked documents. Example: _ self-used to current browsing context (default value), _blank used to open in a new tab, _parent is used to parenting browsing context of the current one, _top is used to the topmost browsing context.
Example:
Input :
Output :
Click Here to go to frontend everything website
.
.
Thanks for sharing
ReplyDeletewwe news 2022
ReplyDelete