Search Header Logo

CSS and HTML Quiz

Authored by Eure Eure

Information Technology (IT)

University

Used 4+ times

CSS and HTML Quiz
AI

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?