HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML base Tag

HTML base Tag



The base tag specifies the base URL and/or target for all relative URLs in a document. It has either an href or a target attribute present or both. This element should be only once in the whole document and it must be in the head of the document.


Attribute explanation:-


Attribute Value Description
href URL Specifies base URL for all relative URLs on the page
target _blank
Specifies default target for all hyperlinks and forms on the page




Its syntax is:- < base >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML