Font Style in CSS
The font-style Property
Most of the time, the font-style property is typically used to specify italic text. It has three values i.e, normal, italic, and oblique.
Syntax:-
Its syntax is:-
< style >
element{
font-style: normal| italic| oblique| initial| inherit;
}
< /style >
Further Explanation:-
Value | Description |
---|---|
normal | The browser displays a normal font style. |
italic | The browser displays an italic font style |
oblique | The browser displays an oblique font style |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |
Code Explanation
All Tutorials related to CSS Basic
CSS Syntax
ID and CLASS Selectors
Descendant Selectors
Comments
Inheritance
Font Family
Font Size
Font Style
Font Weight
Font Variant
Color
Text Align
Vertical Text Align
Text Decoration
Text Indent
Text Shadow
Text Transform
Letter Spacing
Word Spacing
White Spacing