Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <base> href Attribute

  • Last Updated : 04 Oct, 2019

The HTML | <base> href Attribute is used to specify the base URL for all the relative URL of a page.


<base href="URL">

Attribute Values: It contains the value i.e URL which specifies the absolute URL that defines the base URL of the page. for eg.””

Example: This Example illustrates the use of href attribute in html element.

<!DOCTYPE html>
    <!-- Declaring the BASE URL -->
    <base href=
  HTML | <base>href Attribute
    <img src="1-95.jpg"


Supported Browsers: The browser supported by HTML | <base> href Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!