font-style
property is mostly used to specify italic text.
This property has three values:
normal
—The text is shown normally,italic
—The text is shown in italics, andoblique
—The text is “leaning” (oblique
is very similar to italic
).p.normal { font-style:normal; } p.italic { font-style:italic; } p.oblique { font-style:oblique; }Font Size
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
h1 {font-size:40px;}
”.
h1 {font-size:100%;}
”.
If you don’t know what to do at a four-way stop, just stay home. Life only gets harder from there. |