Challenge - 5 Problems
Font Style Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate1:30remaining
What is the output of this CSS snippet?
Consider the following CSS code applied to a paragraph. What will be the font style of the text inside the paragraph?
CSS
p {
font-style: italic;
}Attempts:
2 left
💡 Hint
The
font-style property controls whether text is normal, italic, or oblique.✗ Incorrect
The CSS property
font-style: italic; makes the text italicized, slanting the letters to the right.🧠 Conceptual
intermediate1:30remaining
Which font-style value makes text slanted but not fully italic?
In CSS, which
font-style value creates a slanted text that is different from italic?Attempts:
2 left
💡 Hint
Think about the difference between italic and oblique styles.
✗ Incorrect
The
oblique value slants the text but is less stylized than italic. It is a simple skew.❓ rendering
advanced2:00remaining
What will the text look like with this CSS?
Given this CSS applied to a heading, what is the visual style of the text?
CSS
h1 {
font-style: oblique 20deg;
}Attempts:
2 left
💡 Hint
The
oblique value can take an angle to control the slant.✗ Incorrect
Using
font-style: oblique 20deg; slants the text by 20 degrees, which is different from italic styling.❓ selector
advanced1:30remaining
Which CSS selector applies font-style only to paragraphs inside a section?
You want to make only paragraphs inside a
<section> italic. Which CSS selector correctly targets them?Attempts:
2 left
💡 Hint
Think about how to select paragraphs that are inside a section.
✗ Incorrect
The selector
section p targets all paragraphs inside any section element.❓ accessibility
expert2:00remaining
Why should you avoid using only font-style to convey important info?
Using only
font-style: italic; to highlight important text can cause what accessibility issue?Attempts:
2 left
💡 Hint
Think about how assistive technologies interpret visual styles.
✗ Incorrect
Screen readers do not typically announce font styles like italic, so relying only on style can confuse users who cannot see the style.