Note: If you don't know what an element/tag is and/or how you must use it we recommend you read our HTML tags and attributes tutorial, which you can find in our HTML tutorials section.
Table of contents
Bypass table of contentsThe HTML base element sets the base URI that will act as starting point for all relative URIs present in the document. When absent, the base URI is the URI of the folder containing the document.
This element must be inserted somewhere in the head of the document (HTML head element).
Let's suppose we need to insert a large number of images in this document (http://www.htmlquick.com/reference/tags/base.html), that are located in the images folder (http://www.htmlquick.com/images/). Then we should have every image inserted with an URI like "../../images/image.png".
The HTML base element can help shortening these URIs (that can be many) by setting a base URI to resolve the images' URIs.
Note, that this statement will affect all URIs in the document, and not just the images' URIs.
The "href" attribute specifies the base URI that will act as starting point to resolve all URIs in the document.
Specifies the name of the frame where all linked resources in the document will be opened by default. Refer to the frame-target type definition for further information.
This element doesn't support events.
See a complete list and information about events in HTML
Diseño y desarrollo: Latitud29.com