CSS Fonts
Text that is italicized is often specified using the font-style property.
p.normal {
font-style: normal;
}
p.italic {
font-style: italic;
}
p.oblique {
font-style: oblique;
}
A font’s weight is specified using its font-weight property:
p.normal {
font-weight: normal;
}
p.thick {
font-weight: bold;
}
Whether or not a text should be shown in a small-caps font is determined by the font-variant property.
All lowercase letters become uppercase letters when typeset in a small-caps font. But compared to the text’s original uppercase characters, the converted letters have a smaller font size.
p.normal {
font-variant: normal;
}
p.small {
font-variant: small-caps;
}
CodingAsk.com is designed for learning and practice. Examples may be made simpler to aid understanding. Tutorials, references, and examples are regularly checked for mistakes, but we cannot guarantee complete accuracy. By using CodingAsk.com, you agree to our terms of use, cookie, and privacy policy.
Copyright 2010-2024 by Refsnes Data. All Rights Reserved.