Search Header Logo

HTML & CSS Quiz (Codecademy)

Authored by VIKAS BANDARU

Computers

University

Used 23+ times

HTML & CSS Quiz (Codecademy)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag is used to create a hyperlink in HTML?

<a>
<img>
<h1>
<div>

Answer explanation

The <a> tag is used for hyperlinks.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following tags is used to display an image in HTML?

<img>
<picture>
<figure>
<media>

Answer explanation

The <img> tag embeds images in HTML.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which tag defines the largest heading in HTML?

<h6>
<heading>
<h1>
<title>

Answer explanation

<h1> defines the largest heading.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property in CSS is used to change the text color of an element?

background-color
color
font-style
text-align

Answer explanation

The color property sets the text color.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which CSS selector will select all <p> elements inside a <div>?

div > p
div p
p div
.div p

Answer explanation

div p selects all <p> inside <div>.

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of these are valid values for the CSS position property?

absolute
fixed
relative
sticky
centered

Answer explanation

All except 'centered' are valid position values.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which CSS property controls the size of text?

font-weight
font-size
text-size
text-style

Answer explanation

font-size changes text size.

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?