HTML Default Font: Main Tips
<basefont>element used to determine the HTML default font, its size and color.
- HTML 4.01 deprecated the
<basefont>element. HTML5 fully removed it.
- You should use CSS to manipulate the font style.
How basefont Was Used
<basefont> element defined the HTML font size and color. However, the use of this element for font setting is no longer effective as the most popular browsers do not support it.
<head> <basefont color="green" size="6" face="verdana"> </head>
Here are the options to control fonts without using the HTML
- To set HTML text color, apply the CSS color property.
- To set HTML font size, use the CSS font-size property.
- To style fonts by indicating font-related properties, use the CSS font property.
- To set a list of fonts from the highest priority to lowest, use the CSS font-family property.
The example below shows the proper way of setting font style with CSS properties:
<p>Don’t worry: if Plan A doesn’t work, there are 25 more letters in the alphabet. </p>
- 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
It defined the default text color in a document. Not supported in HTML5.
<head> <basefont color="green"> </head>
It set the default text font in a document. Not supported in HTML5.
<head> <basefont face="verdana"> </head>
It indicated the HTML default font size of text in a document. Not supported in HTML5.
<head> <basefont size="6"> </head>
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!