
CSS and HTML Quiz
Authored by Eure Eure
Information Technology (IT)
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What CSS selector targets all elements on the page?
#
*
.
%
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the <meta> tag in the section?
To display an image
To add headings
To provide metadata like encoding and viewport
To insert JavaScript
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is an HTML element?
A complete set of an opening and closing tag with content
A file path to a resource
A list of styles
A visual image on a page
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What happens if the <!DOCTYPE html> declaration is missing?
The page loads faster
Modern browsers display a warning
The browser may not follow modern standards and render improperly
JavaScript won’t work
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What’s the correct syntax to define a class selector in CSS?
#classname
.classname
classname
@classname
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the benefit of external CSS?
Makes HTML file larger
Requires no browser
Reusable across multiple pages
Only works with JavaScript
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the following CSS rule, what is p?
Property
Value
Selector
Class
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?