Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
Recitation (Basic CSS selector)
0
%
0
0
0
Back
Restart
How do you select all elements with the class name "highlight"?
.highlight { }
Oops!
Okay!
Create a code base on this output. A h1 that is centered and has blue text color.
h1 { text-align: center; color: blue; }
Oops!
Okay!
Identify whether the CSS in each example is INLINE, INTERNAL, or EXTERNAL.. <p style="color: blue; font-size: 18px;">This is a paragraph.</p>
Inline
Oops!
Okay!
Debug the incorrect CSS Syntax: h1 h2 p color: green; { }
h1, h2, p { color: green; }
Oops!
Okay!
True or False. The selector h1, h2, h3 { } applies the same style to all three headings.
True
Oops!
Okay!
Create a code base on this output: A paragraph with a yellow background and 16px font size.
p { background-color:yellow; font-size:16px }
Oops!
Okay!
The universal selector in CSS is written as:
*
Oops!
Okay!
Identify whether the CSS in each example is INLINE, INTERNAL, or EXTERNAL. <link rel="stylesheet" href="style.css">
External
Oops!
Okay!
What CSS selector is used to select an element by its id?
#
Oops!
Okay!
Debug the incorrect CSS Syntax. #title { font-size= 20px; }
#title { font-size: 20px; }
Oops!
Okay!
Set the text color to red for the paragraph with the id 'para1'.
#para1 { text-color: red; }
Oops!
Okay!
Create a code that will select all elements with the class name 'button' and has a red text color.
.button{ color:red; }
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies