wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Foundations of Web Development

Total questions: 33

Worksheet time: 17mins

Name
Class
Date
1.

Which statement best describes debugging in programming?

a)

Finding and removing code errors through careful testing

b)

Writing new features before fixing existing problems

c)

Using a browser to view code output without changes

d)

Adding comments so the code is easier to read

2.

In a typical code editor, what feature helps developers reference specific lines?

a)

Pixel measurement overlay

b)

Built‑in web browsing

c)

Automatic image insertion

d)

Numbered lines starting at one

3.

HTML is primarily used to do which of the following?

a)

Label information with tags for browser display

b)

Store data persistently in a database

c)

Execute server‑side business logic directly

d)

Style pages using advanced animations

4.

What does nesting mean in HTML?

a)

Running code inside the web browser

b)

Converting pixels into percentages

c)

Using tags without closing them

d)

Placing one element inside another element

5.

Which statement about pixels is accurate?

a)

Smallest dots used to measure screen content

b)

HTML tags that define page structure

c)

Browser settings controlling security options

d)

Attributes that change an element’s behavior

6.

A web browser’s primary role is to:

a)

Host databases for application storage

b)

Design images and create raster graphics

c)

Compile source code into machine language

d)

Read HTML and display information on screen

7.

Which choice correctly defines an HTML attribute?

a)

A closing marker that ends an element region

b)

A separate file storing script logic outside HTML

c)

The title of a webpage shown in browser tabs

d)

Information belonging to a tag, affecting behavior or appearance

8.

What is the function of the element in an HTML document?

a)

Container for all content displayed in the browser

b)

Defines site‑wide styles and color themes

c)

Stores metadata for search engines only

d)

Specifies server routes for navigation

9.

Select the statements that describe an HTML element.

a)

A piece of information defined by a tag

b)

A programming language used for servers

c)

Contains tags, attributes, and content

d)

A browser feature for reading images

10.

Which statements about heading tags are correct?

a)

Are used to define paragraphs only

b)

Always appear inside image elements

c)

Help structure sections with clear titles

d)

Provide a title or headline for a page or section

11.

Which statements about the tag are true?

a)

Uses the src attribute to link a file

b)

Places an image on a webpage

c)

Is a void tag without a closing tag

d)

Must wrap text content as children

12.

You need to display a 300 by 200 photo using HTML. Which set of steps shows appropriate planning and reasoning?

a)

Open the image only through the browser’s address bar

b)

Create a heading tag and set text to the file name

c)

Place the photo inside without any attributes

d)

Use with src set to the file; size measured in pixels

13.

Which HTML tag is used to label a block of text and is followed by a line break?

a)

paragraph tag

b)


break tag

c)

division tag

d)

inline tag

14.

What best describes an HTML tag?

a)

Markup using angle brackets

b)

A browser plugin module

c)

A server-side script

d)

A plain text comment

15.

Which statement about closing tags is correct?

a)

They appear before opening tags

b)

They never include angle brackets

c)

They are optional for all tags

d)

They include a slash within brackets

16.

The width style property primarily sets which dimension of an element?

a)

Text font-weight value

b)

Vertical top-to-bottom size

c)

Horizontal left-to-right size

d)

Element z-index position

17.

In web development, to embed content means to do what?

a)

Insert content from another source

b)

Compress assets for faster load

c)

Store data in localStorage

d)

Encrypt media before display

18.

A hyperlink allows a user to do which action?

a)

Resize the current browser window

b)

Open developer tools menu

c)

Cache the current page offline

d)

Navigate to another location

19.

Which example shows a complete URL format?

a)

/relative/path/to/file

b)

www.page name only

c)

http resource without domain

d)

https://www.helloworldcs.org

20.

Which HTML tag creates a clickable link to another location?

What does the