Course Content

  • lecture-11-font
  • lecture-11-font-size
  • lecture-11-font-stretch
  • lecture-11-font-weight

Course Content


The font-style CSS property specifies whether a font should be styled using its font-normal, family's italic, or oblique face.

The most typical method for adding custom fonts to a website is to use the @font-face CSS rule, which is detailed below:

  • Font should be download
  • Make a WebFont Kit for cross-browser compatibility.
  • Insert the font files into your site.
  • Make any necessary changes to your CSS file and upload it.
  • In your CSS declarations, use the custom font.

There are many different types of fonts available in CSS. They include serif, sans-serif, monospace, cursive, fantasy, and decorative fonts. These fonts can be used to create headings and subheadings in text or use them for the body of text. These fonts can also be used for logos or icons on a website.

CSS text properties include font weight, font size, line-height, letter-spacing, word-spacing, text-transform and text-indent.

Use the CSS font-family property to modify the font type in HTML. Set it to the desired value and include it in a style property. Then, in an HTML element like a paragraph, heading, button, or span tag, apply this style property. This is how inline CSS is used.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere