CSS font: style MCQs Quiz | Class 10
This quiz covers essential concepts from Class X, Subject: Computer Applications (Code 165), specifically Unit 2: HTML. The topic for this quiz is CSS font: style MCQs Quiz, focusing on properties like italic/normal etc. Test your knowledge, submit your answers, and download a detailed PDF answer sheet for review.
Understanding CSS `font-style` Property
The CSS font-style property is used to specify the style of the font, primarily allowing text to be rendered as normal, italic, or oblique. This property is crucial for enhancing the readability and visual hierarchy of text on a webpage.
Key Values for font-style:
normal: This is the default value. It renders the text with the normal font face of the specified font family. No special styling is applied.italic: This value renders the text in an italic font face. If a true italic version of the font is available, the browser will use it. Italic fonts are specially designed for a slanted appearance, often with different letterforms than the normal style.oblique: This value renders the text in an oblique (slanted) font face. If a true italic font is not available, the browser will simulate an italic style by simply slanting the normal font. Oblique is essentially a mechanically slanted version of the normal face, while italic is a distinct typeface.
Differences Between italic and oblique:
While both italic and oblique make text appear slanted, there’s a fundamental difference in their origin:
| Feature | italic |
oblique |
|---|---|---|
| Origin | A separate, specially designed font face, often with distinct letter shapes. | A mechanically slanted version of the normal font face. |
| Availability | Relies on the font family having a true italic variant. | Browser can simulate if italic is unavailable by slanting the normal font. |
| Appearance | Often more aesthetically pleasing, optimized for slanted text. | Simply a tilted version, may not be as refined as true italics. |
Usage Example:
p {
font-style: normal;
}
em {
font-style: italic;
}
.oblique-text {
font-style: oblique;
}
Quick Revision List:
font-stylecontrols text slant.normalis the default, no slant.italicuses a specially designed italic font.obliquemechanically slants the normal font.- Browsers fallback to oblique if true italic is missing.
Further Practice Questions:
- Which CSS property is used to make text appear slanted?
- What is the default value of the
font-styleproperty? - If a font family does not have a true italic face, what will a browser typically render when
font-style: italic;is specified? - Which value of
font-styleprovides a mechanically slanted version of the normal font? - Can you specify an angle for the
obliquevalue (e.g.,oblique 10deg)? If so, what does it do?