Search Header Logo

CSS Quiz B1

Authored by Vengatesh vengatesh

Other

Professional Development

CSS Quiz B1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

<style> ________

{ _____red; }

</style>

<body>

<h1>This is a heading</h1>

<p>This is a paragraph</p>

<p class="colortext">This is a paragraph</p>

<p class="colortext">This is a paragraph</p> </body>

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Add an external style sheet with the URL: "mystyle.css".

<head>_______________ </head> <body> <h1>This is a heading</h1> <p>This is a paragraph</p> <p>This is a paragraph</p> </body>

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Set "paper.gif" as the background image of the page.

<style> body { _______ : __________ ; }

</style>

<body> <h1>This is a heading</h1>

<p>This is a paragraph</p>

<p>This is a paragraph</p> </body>

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Use the correct background property to make the background image NOT scroll with the rest of the page

<style>

body { background-image: url("img_tree.png"); __________:_____ ; } </style>

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Use the correct border property to set the LEFT border to "dotted".

<style> p { _______ : dotted; } </style> <body> <h1>This is a heading</h1> <p>This is a paragraph</p> <p>This is a paragraph</p> </body>

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Use the shorthand margin property to add 20 pixels top and bottom margins, and 40 pixels left and right margins, on the <h1> element.

<style> h1 { margin: ________ ; } </style>

<body> <h1>This is a heading</h1> <p>This is a paragraph</p> <p>This is a paragraph</p> </body>

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Set the padding of all sides of the <h1> element to 30 pixels.

<style> h1 {_________ : 30px; } </style> <body> <h1>This is a heading</h1> <p>This is a paragraph</p> <p>This is a paragraph</p> </body>

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?