wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML & CSS quiz

Total questions: 21

Worksheet time: 14mins

Name
Class
Date
1.

Tag such as <head>, <h1>, <p> are (a)   tags. (hint: types of tag)

2.

Tag such as <br>, <img> are (a)   tags. (hint: types of tag)

3.

In a table, which tag is used for inserting table headings?

a)

<table>

b)

<td>

c)

<th>

d)

<caption>

4.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
5.
What is the purpose of HTML
a)
To make a formatted document
b)
To make a webpage
c)
To edit photos
d)
To make a creative slide
6.

What is the proper code to insert an image named "tevitol.jpg"?

a)

<img src="tevitol" width="104" height="142">

b)

<img="tevitol.jpg" width="104" height="142">

c)

<img src="tevitol.jpg" width="104" height="142">

d)

<img ="tevitol" width="104" height"142">

7.

Which tag defines the visible content of a web document?

a)

<head>

b)

<meta>

c)

<title>

d)

<body>

8.

A properly coded HTML tag will always be found between which two symbols?

a)

< >

b)

{ }

c)

[ ]

d)

( )

9.

Which line of code correctly creates a link to Microsoft's website?

a)

<a ref=https://www.microsoft.com>Microsoft

b)

<href=https://www.microsoft.com>Microsoft<a>

c)

<a href="https://www.microsoft.com">Microsoft

d)

<a href="https://www.microsoft.com">Microsoft</a>

10.

Which tag is used to create a new row within a table?

a)

<table>

b)

<td>

c)

<tr>

d)

<th>

11.

You should save HTML files with which file extension(s)?

a)

.hm

b)

.index

c)

.webpage

d)

.html

12.

The correct sequence of HTML tags for starting a webpage is -

a)

Head, Title, HTML, body

b)

HTML, Body, Title, Head

c)

HTML, Head, Title, Body

d)

none of these

13.

From the below options, how do we create a bulleted list in HTML?

a)

<li>

b)

<ul>

c)

<list>

d)

<bl>

14.

In HTML5, which of the following tag is used to initialize the document type?

a)

<Doctype HTML>

b)

<\Doctype html>

c)

<Doctype>

d)

<!DOCTYPE html>

15.

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

a)

\

b)

!

c)

/

d)

.

16.

Which of the following tags is used to create a list item in HTML?

a)

<list>

b)

<a href>

c)

<li>

d)

<il>

17.

How to add a comment in Html?

a)

<!-- --!>

b)

<!-- -->

c)

\\

d)

<-- -->

18.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
19.

What is the value in this CSS?

p {color: red;}

a)

p

b)

color

c)

red

20.
Which item refers to the start tag, the end tag and everything in between?
a)
HTML Element
b)
HTML Tag
c)
HTML Attribute
d)
CSS
21.

Write the basic structure of an HTML document

4 lines