HTML base Tag: Main Tips
<base>element defines base URL for all the relative links in the HTML document.
<base>tag does not have the closing tag.
Use of base
<base> specifies the HTML base URL for relative links in a web page.
<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
- Do not include a closing tag.
- Simplistic design (no unnecessary information)
- High-quality courses (even the free ones)
- Variety of features
- Nanodegree programs
- Suitable for enterprises
- Paid certificates of completion
- Professional service
- Flexible timetables
- A variety of features to choose from
- Professional certificates of completion
- University-level courses
- Multiple Online degree programs
- 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
<base href=""> defines the base URL for all the relative URLs in the document.
<head> <base href="https://www.bitdegree.org/course/"> </head>
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.
<head> <base target="_blank"> </head>
_selfopens the link in the same browser window.
_blankopens the link in a new browser window.
_parentopens a link in a parent window of the current window.
_topopens a link in the top-level browsing window.
Mobile Browser Support
Latest Udacity Coupon Found:
75% OFF COURSES
Udacity Black Friday Offer
The best time to save on Udacity courses is now - follow this coupon to access a 75% Udacity Black Friday discount & enjoy learning at a very low cost!