wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML & CSS Quiz

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

Which character is used to represent the closing of a tag in HTML?

a)

\

b)

/

c)

!

d)

.

2.

Which tag is used for defining a paragraph?

a)

<h1>

b)

<para>

c)

<p>

d)

<p1>

3.

How to add a comment in HTML?

a)

<!-- --!>

b)

<!-- -->

c)

//

d)

<-- -->

4.

Which tag is used to add image?

a)

<img src="url">

b)

<img src=url>

c)

<image src="url">

d)

<image src=url>

5.

How do we create a bulleted list?

a)

<li>

b)

<ul>

c)

<list>

d)

<bl>

6.

How to add comment in CSS?

a)

/* */

b)

/* /*

c)

/ /

d)

/* /

7.

Which tag is used to apply CSS to only a part of text?

a)

<part>

b)

<br>

c)

<div>

d)

<span>

8.

Which one of the options is not a valid heading tag?

a)

<h1> </h1>

b)

<h2> </h2>

c)

<h7> </h7>

d)

<h4> </h4>

9.

Which of the following tag is used for inserting the largest heading in HTML?

a)

h6

b)

h

c)

h1

d)

header

10.

The below statement adds spacing to an element in which order?

padding: 20px 10px;

a)

20px to top & right

10px to bottom and left

b)

20px to top & left

10px to right and right

c)

20px to top & bottom

10px to right and left

d)

None of these