wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML /CSS Prep Quiz

Total questions: 27

Worksheet time: 24mins

Name
Class
Date
1.

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

a)

<table>

b)

<td>

c)

<th>

d)

<caption>

2.
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.
3.
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
4.

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">

5.

Which tag defines the visible content of a web document?

a)

<head>

b)

<meta>

c)

<title>

d)

<body>

6.

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

a)

< >

b)

{ }

c)

[ ]

d)

( )

7.

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>

8.

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

a)

<table>

b)

<td>

c)

<tr>

d)

<th>

9.

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

a)

.hm

b)

.index

c)

.webpage

d)

.html

10.

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

11.

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

a)

<li>

b)

<ul>

c)

<list>

d)

<bl>

12.

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>

13.

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

a)

\

b)

!

c)

/

d)

.

14.

What is the value in this CSS?

p {color: red;}

a)

p

b)

color

c)

red

15.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
16.
Which of the following is NOT a function of the <title> </title> element?
a)
Defines a title in the browser tab.
b)
Provides a title for the page when added to favorites/bookmarks
c)
Creates the first heading on the index page of the website
d)
Displays a title for the page in search engine results
17.
http://www.google.com is an example of a what?
a)
URL
b)
IP address
c)
Browser
d)
Application
18.

Which is the correct CSS syntax?

a)

body {color: yellow;}

b)

body:color=yellow;

c)

{body:color= yellow;}

d)

{body;color: yellow;}

19.

CSS stands for

a)

Code Style Sheet

b)

Coding Style Sheet

c)

Cascading Sheet Style

d)

Cascading Style Sheet

20.

HTML stands for

a)

Hyper Text Marker Language

b)

Hyper Text Marker Lingo

c)

Hyper Text Markup Language

d)

Hyper Text Markup Lingo

21.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<ul>
b)
<li>
c)
<br>
d)
<h1>
22.
Karen wants to begin a new line within a paragraph of text on a webpage. Which code should she use?
a)
<li>
b)
<h1>
c)
<hr>
d)
<br>
23.

What is HTML generally used for?

a)

Android apps

b)

User Interface Operations

c)

Webpage aesthetics

d)

The skeleton of webpages

24.

What unit of measurement does CSS use for size?

a)

px

b)

em

c)

%

d)

All work

25.

Type your full name

4 lines
26.

Type your complete Reg no

4 lines
27.

Describe in one word about this preparation quiz

2 lines