Links are found in nearly all web pages. Links allow users to click their way from page to page. Hyperlinks are defined with the HTML <a> tag.
Syntax:
<a href="url">Click Here</a>
Where “URL” represent the link of website & “Click Here” represent the visible part.
The target attribute specifies where to open the linked document. It can only have one of the following values:
Example -
Syntax:
<a href="url">Click Here</a>
Where “URL” represent the link of website & “Click Here” represent the visible part.
HTML Links - The target Attribute
- _blank - Opens the linked document in a new window or tab
- _self - Opens the linked document in the same window/tab as it was clicked (this is default)
- _parent - Opens the linked document in the parent frame
- _top - Opens the linked document in the full body of the window
Example -
0 Comments