In this section, we will see the use of target attribute of anchor tag in HTML5.
In this section, we will see the use of target attribute of anchor tag in HTML5.In this tutorial, we will see the use of target attribute of anchor tag in
HTML5. Target attribute tells the browser where to display linked document. There
are four defined targets. Each target starts with an underscore("_").
_blank, _parent, _self, _top.
Attribute | Value | Description |
---|---|---|
target | _blank _self _parent _top |
linked document will be display in new window. linked document will be display in current window. linked document will be display in current frameset. linked document will be display in main browser window. |
Declaration syntax of target attribute in anchor tag.
<a href="value" target="value">Text Area</a> |
hrefAttributeTag.html
<!DOCTYPE html> |
Note: See the browser compatible page for successfully rendering the program.