Logo
  Sunday, May 20, 2012
Sign-In  |  Sign-Up  |  Contact Us  | Bookmark |  RSS Feed

HTML5 Tutorial FeedBurner

The HTML5 <base> Tag  
The HTML5 <base> tag is particularly the target or the base URL for all the relative URLs in an HTML document. The HTML5 <base> tag is important because it sets the main URL being used as a reference for the document. When the HTML5 <base> tag is used, it defines the base address where the elements in the document will be taken from.

The HTML5 <base> tag has to be utilized as the first element in the HTML5 <head> element. It is essential that the HTML5 <base> tag element be used only once.

The functionality of HTML5 <base> tag is the same whether in HTML4.01 or HTML5.

This is an example of how the HTML5 <base> tag is used:

<head>
<base href="http://www.html5videotutorial.com" target="_blank" />
</head>

The HTML <base> tag is used for one or more attributes. These attributes are added to provide the browser more information on how the tag should appear/behave. These attributes consist of a name and a value separated by an equals (=) sign, with the value surrounded by double quotes.

The attributes that can be used for the HTML5 <base> tag are the following:

Attribute

Value

Description

href

URL

Identifies base for relative URLs in the page

target

_blank
_parent
_self
_top
framename

Identifies target for all links

Print HTML5 <base> Tag Bookmark HTML5 <base> Tag

Related Articles  
The HTML5 <rt> Tag
The HTML5 <rt> tag is used along with the <ruby> and <rp> tags to clearly define he ruby ...
The HTML <noframes> Tag
The HTML <noframes> tag is no longer accepted and used in HTML5. In the previous HTML, particularly HTML4.01, ...
The HTML5 <div> Tag
The HTML5 <div> tag is the key in separating different partitions within an HTML document. It is capable of ...
The HTML5 <basefont> Tag
The <basefont> tag is not supported in HTML5. This tag is used to set the default font color, font size, and font ...
The HTML5 <output> Tag
The HTML5 <output> tag has to be placed within an HTML document if the calculation result has to be represented. ...
The HTML5 <kbd> Tag
When creating an HTML document, the purpose of HTML5 <kbd> tag is to specify a keyboard input. It is for the text ...
More