1. Home
  2. Computing & Technology
  3. Web Design / HTML

<base />

By Jennifer Kyrnin, About.com

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

<base /> Description:

Defines the base URI information for relative paths within the document. Also, this element defines the base target for linked frames within the document.

<base /> Web Browser Support:

<base /> Attributes:

All attributes are optional unless indicated.

<base /> End Tag:

None, <base /> is a singleton tag.

<base /> Contents:

None.

<base /> Valid Context:

The <base /> tag is valid within the following tags:
head

<base /> Usage:

  • A base URL for a page
    <base href=\"http://webdesign.about.com/\" />
    All images, anchors, and multimedia are located on http://webdesign.about.com/
  • A base target for a page
    <base href=\"/\" target=\"_top\" />
    All anchors will open in the top window of the frameset.

<base /> Special Notes:

  • Setting a base href allows you to store the HTML for your pages for your Web page where ever you need them and the images and links will continue to work.
  • The base target allows you to set a standard target for all your links.

More <base /> Information:

< Previous | HTML 4.01 Tags / XHTML 1.0 Elements | Next >

Free XHTML 1.0 Class | HTML Validators | Free HTML 4.01 Class

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The base Element - Resolving relative information in Web pages - XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.