CSS – Cascading Style Sheet
In this lecture you will learn Font setting and how to usage custom fonts for your html web page
In CSS, there are two types of font family names:
generic family - a group of font families with a similar look (like "Serif" or "Monospace")
font family - a specific font family (like "Times New Roman" or "Arial")
Font Family
The font family of a text is set with the font-family property.
The font-family property should hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font, and so on.
Start with the font you want, and end with a generic family, to let the browser pick a similar font in the generic family, if no other fonts are available.
for instance fonts css examples with source code here:
CSS font-family
This is a paragraph, shown in the Times New Roman font.
This is a paragraph, shown in the Arial font.
This is a paragraph, shown in the Lucida Console font.
in the above shown example applied fonts in css to a html tag elements, in this example source code written in p tag is applied on style attribute with parameters are having with their values.
similarly one p tag of html element is also applied for fonts