wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Design Study Guide 1

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

What is the correct order of basic HTML structure?

a)

<head> <title> <body>

b)

<html> <head> <body>

c)

<body> <head> <html>

d)

<title> <html> <body>

2.

How do you add an image to an HTML page?

a)

<img src="image.jpg">

b)

picture>image.jpg</picture>

c)

<image>image.jpg</image>

d)

<div>image.jpg</div>

3.

Which of the following is NOT a part of the CSS Box Model?

a)

Margin

b)

Border

c)

Padding

d)

Content

4.

What attribute specifies a unique identifier for an HTML element?

a)

class

b)

id

c)

style

d)

href

5.

Which HTML tag is used to define an unordered list?

a)

ul

b)

ol

c)

li

d)

dl

6.

What HTML tag defines a table cell?

a)

td

b)

tr

c)

th

d)

table

7.

Which of the following is NOT a type of CSS?

a)

External CSS

b)

Inline CSS

c)

Dynamic CSS

d)

Internal CSS

8.

Which CSS property is used to position an element relative to its normal position?

a)

position: absolute;

b)

position: relative;

c)

position: fixed;

d)

position: static;

9.

How do you add a 2px solid black border to an element?

a)

none

b)

border-width: 2px; border-color: black;

c)

border-style: solid; border-width: 2px; border-color: black;

d)

border: 2px solid black;

10.

What is the difference between a class and an ID in CSS?

a)

Classes can be applied to multiple elements, IDs can only be applied to one.

b)

Classes are used for styling, IDs are used for scripting.

c)

IDs can be applied to multiple elements, classes can only be applied to one.

d)

IDs are used for styling, classes are used for scripting.

11.

How do you apply a CSS class named "myClass" to an HTML element?

a)

<p style="myClass">

b)

<p class="myClass">

c)

<p id="myClass">

d)

<p myClass>

12.

What is a <div> element used for in HTML?

a)

To define a table row

b)

To define a table header

c)

To define a division or section in an HTML document

d)

To define a hyperlink

13.

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

a)

color

b)

background

c)

background-color

d)

bgcolor

14.

Which CSS pseudo-class is used to style an element when the mouse hovers over it?

a)

hover

b)

active

c)

focus

d)

link

15.

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

a)

<link rel="stylesheet" href="style.css">

b)

<style src="style.css"></style>

c)

<script src="style.css"></script>

d)

<css>style.css</css>

16.

How do you create a link to another webpage?

a)

<a href="url">Link Text</a>

b)

<link href="url">Link Text</link>

c)

<url>Link Text</url>

d)

<a url="url">Link Text</a>

17.

Where is the <title> tag placed in an HTML document?

a)

Inside the <body> tag

b)

Before the <html> tag

c)

Inside the <head> tag

d)

none

18.

What does HTML stand for?

a)

Hyperlinks and Text Markup Language

b)

Hyper Text Markup Language

c)

Home Tool Markup Language

d)

Hyper Text Markdown Language

19.

What does CSS stand for?

a)

Creative Style Sheets

b)

Colorful Style Sheets

c)

Computer Style Sheets

d)

Cascading Style Sheets

20.

What is an iframe?

a)

A type of image format

b)

A way to add JavaScript to a webpage

c)

An inline frame that displays web content within a web page

d)

A type of CSS layout

21.

Which CSS property controls the space around an element's content?

a)

padding

b)

margin

c)

border

d)

width

22.

How do you center an element horizontally using CSS?

a)

margin: auto;

b)

text-align: center;

c)

display: flex; justify-content: center;

d)

All of the above

Sources and related content