NEW
Font size
WorksheetsUnderstanding CSS Selectors and Styling
Total questions: 30
Worksheet time: 14mins
What does CSS stand for?
Cascading Style Sheets
Computer Style Sheets
Colorful Style Sheets
Creative Style Sheets
What is the correct format for selecting elements by class in CSS?
Using the class name directly
Using an asterisk before the class name
Using a hash followed by the class name
Using a period followed by the class name
Which HTML attribute is used to apply styles to a specific group of elements?
class
id
style
group
How can you make a CSS rule more specific to only apply to paragraph tags with a certain class?
Add 'p' after the class name
Use only the class name
Add 'p' in front of the period and class name
Use only the tag name
What is a valid class name in CSS?
A name with special characters
A name starting with a number
A name with spaces
A name without spaces and not starting with a number
What happens when an HTML element has multiple classes?
CSS rules for all classes apply
Only the first class rule applies
Only the last class rule applies
No rules apply
How can you style a group of elements to have a red background and larger font if they have a specific class?
Modify the browser settings
Add a CSS rule for that class with the desired styles
Change the HTML structure
Use inline styles on each element
What does it mean when a class styling overrides tag styling?
Tag styling is broken
Class styling is considered more specific than tag styling
Class styling is always on top
Tag styling is not needed
How can you create a checkerboard pattern using classes in CSS?
Alternate classes with different background colors in a grid
None of the above
Use a single class for all cells
Apply a checkerboard image as background
What should you do if you want to make a class name valid that starts with a number?
Replace the number with a letter
Put the number at the end of the class name
Start the class name with a special character
Remove the number
p {color: red;}
border./* This is a multi-line comment */
You used a grid-based layout and resize-able images, which is another RWD technique that you can use in responsive design?
p {color: red;}
placed within his webpage?
What is wrong with this code?
The style sheet <link> statement belongs between <head> and </head>
The style sheet <link> statement belongs between <title> and </title>
The style sheet <link> statement belongs between </head> and <body>
The style sheet <link> statement belongs immediately after the DOCTYPE statement
