- Courses
- HTML
- HTML top level tags
- <base>
- Default behavior of the target attribute
What is the default behavior of the target
attribute in the <base>
element?
The default behavior of the target attribute in the <base>
element is to show the result in the current browsing context.
By default, the target
attribute is set to _self
, which means that the linked document will open in the same frame as it was clicked. This is the standard behavior unless another target is specified. Other possible values include _blank
for opening in a new window or tab, _parent
for opening in the parent frame, and _top
for opening in the full body of the window.
<base target="_self">