HTML CSS examples for HTML Tag:base
The base element sets a base URL against for relative links contained in the HTML document.
A relative link is one that omits the protocol, host, and port parts of the URL.
The base element specifies how links are opened when a user clicks them.
The base Element summary
Item | Value |
---|---|
Element | base |
Element Type | Metadata |
Permitted Parents | head |
Local Attributes | href, target |
Contents | None |
Tag Style | Void |
New in HTML5 | No |
Changes in HTML5 | None |
Style Convention | None |
An HTML document can contain, at most, one base element, inside of the head element.
<html> <head></head> <body></body> </html><!--from w w w . j a v a 2s .c o m-->