Search Header Logo

Last HTML and CSS Quiz

Authored by Muhammad Muhammad

Information Technology (IT)

6th Grade

Used 3+ times

Last HTML and CSS Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which HTML tag is used to define an internal style sheet?

<css>

<style>

<script>

<link>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct CSS property to make a text bold?

font-weight: bold;

text-style: bold;

font-bold: true;

bold: yes;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to apply a class in CSS?

#classname {}

.classname {}

classname {}

@classname {}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default position property of an HTML element?

relative

absolute

static

fixed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In CSS, how do you select all <p> elements inside a <div>?

div p {}

div > p {}

div + p {}

div, p {}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property is used to control the space between elements' borders and their content?

margin

padding

spacing

border-spacing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to include an external CSS file in an HTML document?

<link href="styles.css">

<style src="styles.css">

<css link="styles.css">

<link rel="stylesheet" href="styles.css">

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?