wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web development

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyperlink and Text Markup Language

b)

HyperText Markup Language

c)

High-Level Text Markup Language

d)

HyperTransfer Markup Language

2.

Which language is used for styling web pages?

a)

HTML

b)

CSS

c)

JavaScript

d)

Python

3.

What is the primary purpose of CSS?

a)

Structure web content

b)

Style web content

c)

Create interactivity

d)

Handle server-side operations

4.

In CSS, how do you select an element by its class?

a)

#

b)

&

c)

.

d)

$

5.

What is the role of JavaScript in web development?

a)

a) Style the webpage

b)

b) Define the webpage structure

c)

c) Add interactivity and behavior to the webpage

d)

d) Store data on the server

6.

Which HTML tag is used to create a hyperlink?

a)

a) <link>

b)

b) <a>

c)

c) <hyperlink>

d)

d) <url>

7.

What is the file extension for a Cascading Style Sheets (CSS) file?

a)

a) .html

b)

b) .css

c)

c) .js

d)

d) .txt

8.

Which attribute is used to link an external CSS file to an HTML document?

a)

a) link

b)

b) style

c)

c) css

d)

d) script

9.

What does DOM stand for in web development?

a)

a) Document Object Model

b)

b) Display Object Model

c)

c) Document Object Method

d)

d) Display Object Method

10.

Which HTML tag is used to define the structure of an HTML document?

a)

a) <html>

b)

b) <body>

c)

c) <structure>

d)

d) <main>

11.

What is the purpose of the <head> tag in HTML?

a)

a) Defines the main content of the page

b)

b) Contains metadata and links to external resources

c)

c) Defines the page footer

d)

d) Styles the content

12.

What is the correct way to comment in HTML?

a)

a) // This is a comment

b)

b) <!-- This is a comment -->

c)

c) /* This is a comment */

d)

d) ' This is a comment '

13.

Which CSS property is used to set the background color of an element?

a)

a) background-color

b)

b) color

c)

c) background

d)

d) bgcolor

14.

What is the purpose of the float property in CSS?

a)

a) Set the text alignment

b)

b) Define the position of an element

c)

c) Control the spacing between lines of text

d)

d) Float an element to the left or right of its container

15.

Which HTML tag is used to create an unordered list?

a)

a) <ol>

b)

b) <ul>

c)

c) <li>

d)

d) <list>

16.

What is the role of media queries in CSS?

a)

a) Define multimedia elements like images and videos

b)

b) Change the layout and styles based on the device's characteristics

c)

c) Specify font sizes and colors

d)

d) Create interactive animations

17.

Which attribute is used to define an image in HTML?

a) src

b) image

c) link

d) href

a)

a) src

b)

b) image

c)

c) link

d)

d) href

18.

What does the "HTTP" acronym stand for in website URLs?

a)

a) HyperText Transfer Protocol

b)

b) HyperText Transfer Page

c)

c) Hyperlink and Text Transfer Protocol

d)

d) HyperText Transmission Protocol

19.

What is the correct way to include an external JavaScript file in HTML?

a)

a) <script src="script.js"></script>

b)

b) <js src="script.js"></js>

c) <link src="script.js">

c)

c) <link src="script.js"></link>

d)

d) <script file="script.js"></script>

20.

What is the correct way to center an element horizontally in CSS?

a)

a) text-align: center;

b)

b) align: center;

c)

c) center: true;

d)

d) justify-content: center;