HTML and CSS Quiz 9 class

HTML and CSS Quiz 9 class

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Kartik kamble

Used 4+ times

FREE Resource

Student preview

quiz-placeholder

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the meta tag with charset="UTF-8" in the HTML document?

It sets the page's character encoding to UTF-8.

It links to a CSS file.

It includes a JavaScript file.

It defines the viewport settings for mobile devices.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property is used to center-align the text in the title_section class?

align-items

text-align

justify-content

margin

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What HTML attribute is used to uniquely identify an element so that it can be manipulated by CSS or JavaScript?

Class

Name

Id

Type

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Which HTML element is used to link an external CSS file to the HTML document?

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following CSS rule achieve? img { border: 2px solid black; }

Adds padding to images

Sets a margin around images

Adds a border around images

Changes the image size

6.

OPEN ENDED QUESTION

3 mins • 1 pt

To create an image gallery, which HTML element is used to display individual images?

Evaluate responses using AI:

OFF

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the effect of setting background-size: cover in the CSS for the header class?

It repeats the background image

It stretches the background image to cover the entire element

It tiles the background image

It centers the background image without resizing

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?