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

<base />

By , About.com Guide

< 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
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

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

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

All rights reserved.