
CSS and HTML Quiz

Quiz
•
Computers
•
9th Grade
•
Medium
Ma. Basco
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct CSS selector to select all elements with the class 'example'?
.example
example
#example
.examplee
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you group multiple selectors to apply the same styles to all of them?
By using a hyphen
By using a plus sign
By separating them with a comma
By using a semicolon
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which CSS selector is used to select elements with a specific attribute value?
Class selector
ID selector
Attribute selector
Element selector
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'action' attribute in an HTML form?
It specifies the URL where the form data will be submitted.
It specifies the size of the form
It changes the font style of the form
It adds a background color to the form
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you create a drop-down list in an HTML form?
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the 'required' attribute used for in an HTML form?
It is used to change the font style of the input field
It is used to add a background color to the input field
It is used to create a border around the input field
It is used to specify that an input field must be filled out before submitting the form.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the four main components of the CSS box model?
top, bottom, left, right
header, footer, sidebar, content
content, padding, border, and margin
text, image, video, audio