asp.net.ph

Skip Navigation Links

HREF Attribute | href Property

Language References


Specifies the base URL to use for all relative URLs in a document.

Applies To: BASE

Syntax


Inline <base href = strURL...>
Script base.href = strURL

Possible Values


strURL String containing a valid URL.

The property is read/write with no default value.

Example

The following example sets the base URL of the document to a reference folder.

<head>
   <base href="http://asp.net.ph/">
</head>

<body>
   Click here to learn about the <a href="abkd/refs/tags/base.html">base</a> element.
</body>

Browsers will then use the <base> element to resolve the hyperlink to:

http://asp.net.ph/abkd/refs/tags/base.html.

Applies To

BASE



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note