The best HTML <base> tag Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Tag definitions and instructions,Tips and Notes,Differences between HTML 4.01 and HTML5,Differences between HTML and XHTML,Attributes,Global Properties,Event Properties,related articles,
A predetermined default page URL and the default target for all links:
All major browsers support <base> tag.
<Base> tag on the page relative to all the provisions of the default link URL or the default target.
In one document, it can be used up to a <base> element. <Base> tag must be in the <head> element inside.
Tip: The <base> tag in the row position <head> element ofthe firstelement, so head region other elements you can use the <base> element in the information.
NOTE: If you use the <base> tag, you must have the href attribute or target property or two properties are available.
no.
In HTML, <base> tag has no end tag.
In XHTML, <base> tag must be closed properly.
Attributes | value | description |
---|---|---|
href | URL | URL for all relative links reference the provisions of the page. |
target | _blank _parent _self _top framename | Provision of hyperlinks to all pages and forms where the open. This property will be covered each link of the target property. |
<base> tag supports HTML global properties .
<Base> tag does not support any event attributes.
HTML DOM Reference: Base Object