APPLY NOW HERE :: FREE REGISTERATION ONLINE
Want to know more about us and our multimedia, animation & web design courses, feel free to Contact Us. We would love to hear from you.
The CSS font properties define the font family, boldness, size, and the style of a text.
In CSS, there are two types of font family names:
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.
Note: If the name of a font family is more than one word, it must be in quotation marks, like: "Times New Roman". More than one font family is specified in a comma-separated list:
The font-style
property is mostly used to specify italic text.
This property has three values:
The font-size
property sets the size of the text.
Being able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs.
Always use the proper HTML tags, like <h1>
- <h6>
for headings and <p>
for paragraphs.
The font-size value can be an absolute, or relative size.
Absolute size:
Relative size:
Note: If you do not specify a font size, the default size for normal text, like paragraphs, is 16px (16px=1em).
Setting the text size with pixels gives you full control over the text size:
To allow users to resize the text (in the browser menu), many developers use em instead of pixels. The em size unit is recommended by the W3C. 1em is equal to the current font size. The default text size in browsers is 16px. So, the default size of 1em is 16px.
Note: The size can be calculated from pixels to em using this formula: pixels/16=em.
The font-weight
property specifies the weight of a font:
The font-variant
property specifies whether or not a text should be displayed in a small-caps font.
In a small-caps font, all lowercase letters are converted to uppercase letters. However, the converted uppercase letters appears in a smaller font size than the original uppercase letters in the text.
The line-height
property is used to specify the space between lines:
Mobile Number :
9891 222 738,
9891 50 1300
E-mail : contactbapugraphics@gmail.com
ADDRESS: H-17 / 263, First Floor,Sector 7,
Near Rohini West Metro Station,
Opposite Metro Pillar No. 425
Rohini, Delhi - 110085
Day | Timing |
Monday To Friday | 8:00 Am To 7:00Pm |
Saturday | 10:00 Am To 6:00Pm |
Want to know more about us and our multimedia, animation & web design courses, feel free to Contact Us. We would love to hear from you.