HTML <base> with target Attribute
HTML <base> with target Attribute
The target
attribute specifies where to display the result when hyperlinks or forms cause navigation.
_blank
The _blank attribute value will display the result in a new window, when hyperlinks or forms cause navigation.
Example
Attribute Value
Value | Explanation |
---|---|
_blank | Display the result in a new window, when hyperlinks or forms cause navigation. |
_self | Display the result in the same frame, when hyperlinks or forms cause navigation. Default. |
_parent | Display the result in its parent frame, when hyperlinks or forms cause navigation. |
_top | Display the result in the complete window by breaking all the frames it is nested, when hyperlinks or forms cause navigation. |
_self
The _self attribute value will display the result in the same frame, when hyperlinks or forms cause navigation.
This is the default behavior.
Example
_parent
The _parent attribute value will display the result in its parent frame, when hyperlinks or forms cause navigation.
Example
_top
The _top attribute value will display the result in the complete window by breaking all the frames it is nested, when hyperlinks or forms cause navigation.
Example
Reminder
Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in HTML.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.