wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Dev Quiz

Total questions: 40

Worksheet time: 13mins

Name
Class
Date
1.

Which one of these is not a purpose of HTML?

a)

To add structure to a webpage

b)

To define the content of a webpage

c)

To style a webpage’s appearance

d)

To create headings and paragraphs

2.

Which of the following is a type of code editor?

a)

Google Docs

b)

Atom

c)

Paint

d)

VLC Media Player

3.

The opening tag for a paragraph is:

a)

<paragraph>

b)

<pg>

c)

<p>

d)

<para>

4.

What should every HTML file start with?

a)

<html version="5">

b)

<head>

c)

<!DOCTYPE html>

d)

<meta charset="UTF-8">

5.

What is the purpose of the <head> section in an HTML file?

a)

To display all visible content

b)

To write JavaScript only

c)

To store meta-information like the title

d)

To display images

6.

What tag would you use to show a large heading?

a)

<h6>

b)

<head>

c)

<h1>

d)

<title>

7.

You want to add a picture to your webpage. Which tag should you use?

a)

<picture>

b)

<img>

c)

<media>

d)

<src>

8.

Which part of the website contains what the user actually sees?

a)

<footer>

b)

<head>

c)

<body>

d)

<meta>

9.

Which of these is used to group content but has no specific meaning?

a)

<meta>

b)

<div>

c)

<h1>

d)

<section>

10.

What is the correct way to 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 */

11.

What does CSS mainly help you do?

a)

Write the structure of the page

b)

Create loops and conditions

c)

Style and design your webpage

d)

Store data in a database

12.

What does a CSS rule always contain?

a)

A heading and a border

b)

A tag and an image

c)

A selector and styling instructions

d)

A div and a footer

13.

What does a CSS declaration represent?

a)

 A complete HTML page

b)

A style instruction inside a CSS rule

c)

A comment block

d)

A JavaScript line

14.

Which of these correctly selects all <h1> elements in CSS?

a)

h1 {}

b)

#h1 {}

c)

.h1 {}

d)

element.h1 {}

15.

What symbol is used for a class selector in CSS?

a)

#

b)

/

c)

.

d)

*

16.

Which is the correct syntax for an inline CSS style on a heading?

a)

<h1 color="blue">Hello</h1>

b)

<h1 style="color: blue;">Hello</h1>

c)

<h1 css="color: blue;">Hello</h1>

d)

<h1>style: color=blue;</h1>

17.

What tag do you use in the <head> section for internal styling?

a)

<css>

b)

<design>

c)

<style>

d)

<script>

18.

Which of these is NOT a valid CSS property?

a)

font-size

b)

text-align

c)

margin

d)

html-structure

19.

Which element would typically go at the very bottom of a webpage?

a)

<header>

b)

<body>

c)

<section>

d)

<footer>

20.

Which tag contains the main visible parts of your webpage?

a)

<title>

b)

<footer>

c)

<body>

d)

<style>

21.

Which element is used to represent the top part or intro of a webpage?

a)

<intro>

b)

<meta>

c)

<header>

d)

<nav>

22.

What is the <div> tag mainly used for?

a)

Adding animations

b)

Grouping elements in a container

c)

Creating links

d)

Loading scripts

23.

In HTML, how many heading levels are there?

a)

4

b)

5

c)

6

d)

7

24.

A proper project folder name should:

a)

Contain spaces

b)

Be short and lowercase

c)

Be called “New Folder”

d)

Use special characters

25.

What is the purpose of using comments in code?

a)

To display images

b)

To style the website

c)

To explain the code for humans

d)

To delete sections

26.

What is a selector in CSS?

a)

 The part that displays text

b)

The tag you style in CSS

c)

The footer element

d)

The browser’s theme

27.

What is a reason to learn HTML and CSS together?

a)

To design websites with both structure and style

b)

To write Python code

c)

To send emails

d)

To upload YouTube videos

28.

Which of the following file types can you write HTML in?

a)

.docx

b)

.html

c)

.exe

d)

.pdf

29.

What kind of folder is best for web projects?

a)

Randomly named folders

b)

A single folder for all files

c)

Desktop screen

d)

Temporary folders

30.

Which of these helps make a webpage look better?

a)

HTML

b)

CSS

c)

JS

d)

PHP

31.

Which of these is a real code editor used by developers?

a)

Notepad

b)

Chrome

c)

VS Code

d)

 File Explorer

32.

What does the <title> tag affect?

a)

Page background color

b)

Image loading

c)

Tab text in the browser

d)

 Font size

33.

Why do developers often comment their code?

a)

To make the website faster

b)

To help others understand the code

c)

 To remove bugs

d)

To copy HTML tags

34.

CSS stands for:

a)

Coding Style Syntax

b)

 Cascading Style Sheets

c)

Common Style System

d)

Clean Syntax Style

35.

Which of these represents a complete CSS rule?

a)

color: blue;

b)

h1 { color: blue; }

c)

{ font-size: 12px }

d)

#header color: red;

36.

If a CSS rule says p { text-align: center; }, what happens?

a)

The page scrolls

b)

 The text moves to the left

c)

The paragraph text is centered

d)

The paragraph is hidden

37.

You want to write CSS inside your HTML document. What method is this?

a)

External

b)

Internal

c)

Inline

d)

Modular

38.

Which of these tags is used to contain your page title?

a)

<style>

b)

<head>

c)

<meta>

d)

<title>

39.

A simple class selector in CSS looks like:

a)

#button {}

b)

.button {}

c)

/button/ {}

d)

button = {}

40.

The <img> tag needs which attribute to work?

a)

href

b)

alt

c)

src

d)

link