<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 NFL as below.
It will display like this in a browser: Visit NFL!
<a href="http://www.nfl.com/">Visit NFL!</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.nfl.com/" target="_blank">Visit NFL!</a>
I do not have a carbon footprint. I just drive everywhere. |