The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <B> | Next Tag: <BASEFONT> |


<BASE>

Use this tag to specify a global value for links and targets.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later
Notes:
  • Place this tag between the <HEAD> and </HEAD> tags.

Attributes:
HREF = "Text" (Required)
Sets a base URL for all relative links in the page.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later

Notes:

  • This attribute must be a full URL. It's normally used to avoid having to type out full URLs within a page. For example, consider the following tag:

    <BASE HREF="http://www.isp.com/biff/">

    Suppose you then use a relative link within the same page:

    <A HREF="index.html">Home</A>

    This is the same as linking to the following address:

    http://www.isp.com/biff/index.html

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 4.0 and later Not supported

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

TARGET = "Test"
Sets a base target name for all links.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 2.0 and later

Notes:

  • If you use frames, this attribute saves you from having to enter a TARGET attribute within every <A> tag. For example, suppose you have a frame named "content" and you want every link to open within that frame. Then you'd use the following tag:

    <BASE TARGET="content">

Example:
<BASE HREF="http://www.mcfedries.com/">
<BASE TARGET="content">

| Index | Previous Tag: <B> | Next Tag: <BASEFONT> |