Anchor Tag - <anchor>
This lesson discusses the Anchor <anchor> tag and its usage in web development.
This tag is used to create a hyperlink in the document.
It requires the href
attribute to specify the
URL of the link.
<a href="https://www.github.com/godkingjay" target="_blank">Visit GitHub</a>
The code above shows an example of the <a>
tag. This tag
is used to create a hyperlink in the document, which links to the
specified URL. The href
attribute specifies the URL of the link.
The target
attribute specifies where to open the link. Its
value can be _blank
to open the link in a new tab or
_self
to open the link in the same tab. By default, the link
opens in the same tab.