wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Design & HTML/CSS Practice Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What does HTML stand for?

a)

HighText Machine Language

b)

HyperText Markup Language

c)

HyperTool Markup Language

d)

Home Tool Markup Language

2.

Which HTML tag defines the main body of the webpage?

a)

<main>

b)

<html>

c)

<body>

d)

<head>

3.

Which element is used to create a hyperlink in HTML?

a)

<img>

b)

<link>

c)

<a>

d)

<href>

4.

Which attribute is used with the tag to define the link's destination?

a)

href

b)

link

c)

src

d)

target

5.

What HTML tag is used to insert an image?

a)

<img>

b)

<image>

c)

<src>

d)

<pic>

6.

What attribute must be included in the tag to specify the image location?

a)

link

b)

src

c)

alt

d)

href

7.

Which tag makes text bold in HTML?

a)

<em>

b)

<b>

c)

<strong>

d)

<i>

8.

What tag should be used to create an unordered list?

a)

<ul>

b)

<ol>

c)

<li>

d)

<list>

9.

In an HTML table, what tag is used to define a table row?

a)

<tr>

b)

<td>

c)

<th>

d)

<table>

10.

What is the correct order for HTML document structure?

a)

<head>, <html>, <body>

b)

<html>, <body>, <head>

c)

<html>, <head>, <body>

d)

<body>, <head>, <html>

11.

What is the purpose of the tag in HTML?

a)

It sets the page heading.

b)

It adds keywords for SEO.

c)

It sets the page title in the browser tab.

d)

It creates a clickable button.

12.

What is CSS used for?

a)

Structuring web content

b)

Styling web pages

c)

Creating animations

d)

Managing databases

13.

Which tag connects a CSS file to an HTML document?

a)

<script>

b)

<style>

c)

<css>

d)

<link>

14.

What CSS selector targets all tags on a page?

a)

.p

b)

#p

c)

p

d)

*p

15.

What is the correct way to apply a unique style using an ID in CSS?

a)

.header { color: blue; }

b)

#header { color: blue; }

c)

header { color: blue; }

d)

$header { color: blue; }

16.

Which of the following is a valid CSS declaration?

a)

color = red

b)

color: red;

c)

color red;

d)

color:: red

17.

What part of the HTML document does the browser not display?

a)

<body>

b)

<title>

c)

<head>

d)

<h1>

18.

How do you write a comment in HTML?

a)

<!-- This is a comment -->

b)

// This is a comment

c)

/* This is a comment */

d)

## This is a comment

19.

Which tag is used for the largest heading?

a)

<head>

b)

<h1>

c)

<h6>

d)

<header>

20.

Why is CSS useful in web development?

a)

It allows creating responsive layouts and consistent styling.

b)

It helps structure the webpage.

c)

It links pages together.

d)

It writes backend code.