href attribute (base)
Sets the base URL to be used throughout the document for relative URL addresses.
By default, the base URL is the location of the current document, but it can be overridden by this attribute.
String that sets the URL to use as a base URL.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the href attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments