<a>
, is used to define both hyperlinks and anchors.
<a href="url">Link text</a>The start tag contains attributes about the link. The element content (link text) defines the part to be displayed. The element content does not have to be text. You can link from an image or any other HTML element.
href
attribute defines the link “address” such as W3C as below.
It will display like this in a browser: Visit W3C!
<a href="http://www.w3c.org/">Visit W3C!</a>The target Attribute
target
attribute defines where the linked document will be opened.
The code below will open the document in a new browser window:
<a href="http://www.w3c.org/" target="_blank">Visit W3C!</a>
I do not have a carbon footprint. I just drive everywhere. |