Code has been added to clipboard!

The CSS Font-Weight Property

Reading time 1 min
Published Aug 10, 2017
Updated Oct 10, 2019

Setting CSS font weight

The CSS font-weight property lets you manipulate the boldness of the font:

Example
p {  
  font-weight: normal;
} 
a {  
  font-weight: bold;
}  
p.thick {  
  font-weight: 780;
}
Udacity
Pros
  • Simplistic design (no unnecessary information)
  • High-quality courses (even the free ones)
  • Variety of features
Main Features
  • Nanodegree programs
  • Suitable for enterprises
  • Paid certificates of completion
Coursera
Pros
  • Professional service
  • Flexible timetables
  • A variety of features to choose from
Main Features
  • Professional certificates of completion
  • University-level courses
  • Multiple Online degree programs
Datacamp
Pros
  • Great user experience
  • Offers quality content
  • Very transparent with their pricing
Main Features
  • Free certificates of completion
  • Focused on data science skills
  • Flexible learning timetable

CSS font-weight syntax explained

To define custom boldness for the font, you need to define a single value:

font-weight: value;

CSS font weight can be specified in either a keyword or a numeric value.

Value Description
Numeric values A unitless number in the range from 1 to 1000. The higher the number, the bolder the text
normal The default value which is equal to 400. The text boldness is usual for the chosen font
bold The text is in bold font. Equal to 700
bolder The text boldness increases
lighter The text boldness decreases

Browser support

Browser image
Chrome
2+
Browser image
Edge
12+
Browser image
Firefox
1+
Browser image
IE
3+
Browser image
Opera
3.5+
Browser image
Safari
1+

Mobile browser support

Browser image
Chrome
18+
Browser image
Firefox
4+
Browser image
Opera
10.1+
Browser image
Safari
1+

Latest Udacity Coupon Found:

Verified STAFF PICK

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!

Expiration date: 19/01/2021
3176 People Used
Only 97 Left
Rating
5.0