HTML base Tag: Main Tips
<base>
element defines base URL for all the relative links in the HTML document.- HTML
<base>
tag does not have the closing tag.
Use of base
<base>
specifies the HTML base URL for relative links in a web page.
Example
<head>
<title>HTML base tag example</title>
<base href="https://www.bitdegree.org/courses">
</head>
There are certain rules for using this element:
<base>
HTML must be included only once in the HTML file.- It has to be put in the <head>.
- Do not add content inside the HTML
<base>
tag. - Do not include a closing tag.

Pros Main Features
- Simplistic design (no unnecessary information)
- High-quality courses (even the free ones)
- Variety of features
- Nanodegree programs
- Suitable for enterprises
- Paid certificates of completion

Pros Main Features
- Easy to navigate
- No technical issues
- Seems to care about its users
- Huge variety of courses
- 30-day refund policy
- Free certificates of completion

Pros Main Features
- Great user experience
- Offers quality content
- Very transparent with their pricing
- Free certificates of completion
- Focused on data science skills
- Flexible learning timetable
Attributes for base
href
The <base href="">
defines the base URL for all the relative URLs in the document.
target
By including the target
attribute, you can set the <base>
HTML to open links either in the current browser window or in a new one.
_self
opens the link in the same browser window._blank
opens the link in a new browser window._parent
opens a link in a parent window of the current window._top
opens a link in the top-level browsing window.
Browser Support

Chrome
All

Edge
All

Firefox
1+

IE
All

Opera
All

Safari
All
Mobile Browser Support

Chrome
All

Firefox
4+

Opera
All

Safari
All