Search Header Logo

HTML & CSS Practice

Authored by Arti Aggarwal

Other

12th Grade

Used 8+ times

HTML & CSS Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which property is used to change the background color in HTML code?

color

bgcolor

background-color

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add a color for <h1> element using Inline CSS?


h1{color:blue;}

<h1 style="color:blue">

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with the code <body>Hello<body/>?

it should be </body>Hello<body>

it should be </body>Hello</body>

it should be <body>Hello</body>

it should be <body>Hello<body>

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What attribute of the img tag displays things on the page if the picture cannot be?

src

alt

style

height

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with the code <br>?

nothing

it should be </br>

it should be <br \>

it should be <br />

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What HTML tag makes a link?

<a>

<tr>

<img>

<br>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What HTML tag do you put things in if you want them to appear on the page?

<html>

<head>

<body>

<p>

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?