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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.