Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web 1

Total questions: 15

Worksheet time: 4mins

Name
Class
Date
1.

What is the primary goal of responsive web design?

a)

To create websites that look visually appealing on all devices.

b)

To build websites that adapt their layout and content to different screen sizes and devices.

c)

To use as little code as possible when building websites.

d)
  • To make websites load faster on mobile devices.

2.

This element is used to create a paragraph of text on websites.

a)

<Fieldset>

b)

<p>

c)

<a>

d)

<body>

3.

What attribute is used to specify the source of an image in the <img> tag?

a)

src

b)

href

c)

alt

d)

link

4.

An element without a closing tag is known as?

a)

Veto element

b)

null element

c)

Void element

d)

<img>

5.

This attribute specifies where to open the linked document.

a)

_blank

b)

target

c)

<a>

d)

href

6.

Which tag is used to create a link in HTML?

a)

<link>

b)
  • <a>

c)
  • <url>

d)
  • <href>

7.

What does the alt attribute in the <img> tag do?

a)

Specifies the image's file path.

b)

Provides alternative text for the image if it can't be displayed.

c)

Sets the alternate image's dimensions.

d)

Creates a link to another page when the image is clicked.

8.

An element that sits within a line of text and only takes up as much width as necessary to contain its content.

a)

line break

b)

Internal element

c)

Inline element

d)

block-level elements

9.

TRUE or FALSE: Both input and button elements are inline elements.

a)

TRUE

b)

FALSE

10.

Which CSS property is used to change the text color?

a)
  • font-color

b)
  • text-color

c)
  • color

d)
  • textcolor

11.

Which CSS property is used to change the background color?

a)

background-color

b)

bgcolor

c)

background

d)

color-background

12.

Which CSS selector is used to target all elements on a page?

a)

. (dot)

b)

# (hash)

c)

* (asterisk)

d)

> (greater than)

13.

How do you link an external CSS file to an HTML document?

a)

Using the <style> tag in the HTML file.

b)

Using the <link> tag in the HTML file.

c)

Using the @import rule in the CSS file.

d)

Using the @meta rule in the CSS file.

14.

Which of the following HTML snippets has an error?

a)

<p>This is a ParaGraPh.</p>

b)

<h1>This is a heeeAding</h1>

c)

<img src="cat.jpg" alt="A cat/">

d)
  • <a href="link">Click here

15.

Which CSS rule has a syntax error?

a)

p { color: blue; }

b)

.highlight { background-color: yellow; }

c)

#my-id { font-size: 16px; }

d)

body color: green;