wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Grade 9_Review Test

Total questions: 82

Worksheet time: 48mins

Name
Class
Date
1.

You’re designing a header and want its text to appear in bright red. Which property will you apply?

a)

font-color

b)

color

c)

text-style

d)

background-color

2.

A client insists that all paragraph text should use Arial. Which property achieves this?

a)

font-style

b)

font-family

c)

font-weight

d)

text-align

3.

You plan to enlarge a heading using centimeters as the unit. Which of these is NOT valid for size?

a)

px

b)

pt

c)

cm

d)

kg

4.

Your design requires all headings to appear bold. Which property should you use?

a)

font-style

b)

font-weight

c)

font-family

d)

text-decoration

5.

You need to center-align text inside a navigation bar. Which property will you choose?

a)

text-align

b)

text-decoration

c)

font-style

d)

word-spacing

6.

To underline all links in the footer, which value is correct?

a)

none

b)

underline

c)

overline

d)

line-through

7.

Your heading looks cramped; you want extra space between letters. Which property helps?

a)

word-spacing

b)

letter-spacing

c)

line-height

d)

text-align

8.

For better readability, you want more space between words in a paragraph. Which property applies?

a)

letter-spacing

b)

word-spacing

c)

text-align

d)

font-size

9.

You need to increase the space between lines in a block of text. Which property should you use?

a)

line-height

b)

letter-spacing

c)

word-spacing

d)

font-weight

10.

You want a paragraph’s weight to be normal. Which keyword represents this?

a)

bold

b)

normal

c)

lighter

d)

bolder

11.

The page background should be light blue. Which property will you use?

a)

color

b)

background-color

c)

background-image

d)

background-repeat

12.

You need to add a company logo as the header’s background. Which property is correct?

a)

background-color

b)

background-image

c)

background-size

d)

background-position

13.

The background image should appear only once. Which value will you use?

a)

repeat

b)

no-repeat

c)

repeat-x

d)

repeat-y

14.

To make the background image cover the entire section, which property sets its size?

a)

background-size

b)

background-position

c)

background-repeat

d)

background-color

15.

You want the background image positioned at the top-right corner. Which property applies?

a)

background-size

b)

background-position

c)

background-repeat

d)

background-color

16.

The sidebar should have a width of 300px300\text{px} . Which property will you use?

a)

height

b)

width

c)

margin

d)

padding

17.

You want the banner’s height to be 150px150\text{px} . Which property should you use?

a)

width

b)

height

c)

margin

d)

padding

18.

To add space outside an element for separation, which property is correct?

a)

margin

b)

padding

c)

border

d)

width

19.

You want space inside an element around its content. Which property applies?

a)

margin

b)

padding

c)

border

d)

height

20.

The button should have rounded corners. Which property will you use?

a)

border

b)

border-radius

c)

padding

d)

margin

21.

You need to change an element from block to inline. Which property will you use?

a)

position

b)

display

c)

float

d)

clear

22.

To set an element’s positioning method (absolute, relative, fixed), which property applies?

a)

display

b)

position

c)

float

d)

clear

23.

You want an image aligned to the left side of text. Which property will you use?

a)

display

b)

position

c)

float

d)

clear

24.

To stop text from wrapping around a floated image, which property should you use?

a)

display

b)

position

c)

float

d)

clear

25.

You want a flexible container for responsive design. Which display value is correct?

a)

block

b)

inline

c)

flex

d)

grid

26.

An image should appear semi-transparent. Which property will you use?

a)

opacity

b)

visibility

c)

color

d)

background-color

27.

You need a shadow around a card element. Which property applies?

a)

text-shadow

b)

box-shadow

c)

opacity

d)

border

28.

To add a shadow behind text in a heading, which property is correct?

a)

box-shadow

b)

text-shadow

c)

opacity

d)

border

29.

When hovering over a button, the mouse pointer should change to a hand icon. Which property applies?

a)

cursor

b)

overflow

c)

visibility

d)

display

30.

You need to control whether content scrolls or hides when overflowing its container. Which property will you use?

a)

cursor

b)

overflow

c)

visibility

d)

opacity

31.

What does HTML stand for?

a)

Hot Typing Markup Language

b)

Home Typing Modern Language

c)

Hyper Text Markup Language

d)

Home Testing Mixed Language

32.

Which one of the following headers has the correct HTML syntax?

a)

<h1>Welcome</h1>

b)

{{h1}}Welcome{{:h1}}

c)

{h1:Welcome}

d)

{h1:Welcome/}

33.

What is a correct HTML markup for the document type declaration?

a)

<!DOCTYPE html>

b)

DOCTYPE html;

c)

--DOCTYPE html;Bottom of Form

d)

(!DOCTYPE html)

34.

This tag is use to close the HTML documents.

a)

</html>

b)

<//html>

c)

<html;>

d)

<html>

35.

Which of the following is the largest heading?

a)

h1

b)

h3

c)

h4

d)

h6

36.

Which Tag defines a paragraph

a)

<pr>

b)

<p>

c)

<para>

d)

<par>

37.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
38.
What is the correct HTML for creating a hyperlink?
a)
<a href="http://www.w3schools.com">W3Schools</a>
b)
<a url="http://www.w3schools.com">W3Schools.com</a>
c)
<a>http://www.w3schools.com</a>
d)
<a name="http://www.w3schools.com">W3Schools.com</a>
39.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
40.
Which HTML element defines the title of a document?
a)
<title>
b)
<meta>
c)
<head>
41.

The end tag is written like the start tag, but with a forward slash inserted before the tag name. Which is the following is an example of a correct end tag?

a)

<p>

b)

<p/>

c)

</p>

d)

</p/>

42.

What do you call a program that interprets HTML?

a)

Webpage

b)

Website

c)

Web browser

d)

Web

43.

Which is the correct syntax for a link?

a)

<a href="url">link text</a>

b)

<a href="url" link text>

c)

<a href=url>link text</a>

d)

<a href="url" link text</a>

44.
Which of the following do you use to create a hyperlink in an HTML document?
a)
The <html> element
b)
The <hr> element
c)
The <img> element
d)
The <a> element
45.

Which attribute contains the URL to a linked web page?

a)

href

b)

type

c)

src

d)

name

46.

How can you make a list that has no particular order?

a)

<ol> </ol>

b)

<ul> </ul>

c)

<ol> <li>

d)

<li> </ul

47.

Which of the following is the proper format for an HTML tag?

a)

>h1<Content Affected by Tag >/h1<

b)

<h1>Content Affected by Tag<h1>

c)

<h1 Content Affected by Tag />

d)

<h1>Content Affected by Tag</h1>

48.

src attribute in an image tag means what?

a)

Source of the image

b)

Name of the image

c)

Description of the image

d)

Not used with image tag

49.

Which list tag would you use for an ordered list

a)

<h1></h1>

b)

<ol></ol>

c)

<ul></ul>

d)

<a></a>

50.
A properly coded HTML tag will always be found between which two symbols?
a)
( )
b)
{ }
c)
[ ]
d)
< >
51.
Annie wants the name of her product to be the main heading at the top of her webpage. Which tag defines
the main heading in a web document?
a)
<h3>Product</h3>
b)
<h5>Product</h5>
c)
<h1>Product</h1>
d)
<h6>Product</h6>
52.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
53.
Which item refers to the start tag, the end tag and everything in between?
a)
HTML Element
b)
HTML Tag
c)
HTML Attribute
d)
CSS
54.
Karen wants to begin a new line within a paragraph of text on a webpage. Which code should she use?
a)
<li>
b)
<h1>
c)
<hr>
d)
<br>
55.
What is the difference between an HTML Tag and an HTML element?
a)
An HTML Tag is case sensitive and an HTML element is not case sensitive.
b)
An HTML Tag is always paired and an HTML element is an "empty" tag.
c)
An HTML Tag defines content and an HTML Element includes the opening and closing tags and everything in between.
d)
An HTML Tag defines content and an HTML Element gives additional meaning and content.
56.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
57.

File extension name of HTML document.

a)

.htm

b)

.html

c)

.xml

d)

.docs

58.

How do you set the alignment of a text in HTML?

a)

align="center"

b)

text-align="center"

c)

style="text-align: center;"

d)

All of the above

59.

Which property is used to control the font size of text in HTML?

a)

font

b)

text-size

c)

font-size

d)

size

60.

A developer wants to create rounded corners for an image inside a table. Which property should be applied?

a)

border-width

b)

border-radius

c)

border-style

d)

border-corner

61.

A web developer wants to center-align text inside all table cells. Which property should be used?

a)

text-align: center;

b)

align: center;

c)

table-text-align: center;

d)

center-text: yes;

62.

What property is used to change the background color of a table?

a)

color-background

b)

bgcolor

c)

table-background

d)

background-color

63.

How can you apply a specific font family to all text within a table?

a)

font: Arial;

b)

text-font: Arial;

c)

table-font: Arial;

d)

font-family: Arial;

64.

How can you add a padding?

a)

padding-cell: 10px;

b)

cell-padding: 10px;

c)

padding: 10px;

d)

table-padding: 10px;

65.

Which property is used to set the width of an image?

a)

border-width

b)

table-size

c)

width

d)

table-width

66.

How can you change the text color of all headers in a body?

a)

font-color: red;

b)

header-color: red;

c)

color: red;

d)

text-color: red;

67.

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

a)

background-color

b)

font-color

c)

text-color

d)

color

68.

What is the function of the <ul>

  • tag in HTML?

a)

To create an unordered list

b)

To underline text

c)

To make text uppercase

d)

To insert an image

69.

Which of the following is NOT a valid HTML tag?

a)

<nav>

b)

<header>

c)

<footer>

d)

<sectioned>

70.

Which property is used to change the background color?

a)

background-color

b)

color

c)

bgcolor

d)

background

71.

Which property is used to control the font size of text?

a)

font-size

b)

text-size

c)

size

d)

font-style

72.

Which tag is used to display a list of items in HTML?

a)

<li>

b)

<list>

c)

<ul>

d)

<ol>

73.

Which attribute is used to specify an image's alternative text?

a)

alt

b)

src

c)

title

d)

image-text

74.

Which tag is used to define the style section in an HTML document?

a)

<css>

b)

<link>

c)

<script>

d)

<style>

75.

How do you center an element?

a)

text-align: center;

b)

margin: auto;

c)

position: center;

d)

align: center;

76.

How do you add an image with an alternative description in HTML?

a)

<img alt="Image description" src="image.jpg">

b)

<image description="Image description" src="image.jpg">

c)

<img src="image.jpg" alt="Image description">

d)

<img description="Image description" src="image.jpg">

77.

Which attribute is used to specify the width of an image in HTML?

a)

height

b)

width

c)

size

d)

dimensions

78.

Which tag is used to make a text bold?

a)

<strong>

b)

<bold>

c)

<b>

d)

<big>

79.

Which character is used to indicate an end tag?

a)

*

b)

/

c)

\

d)

|

80.

Which HTML element is used to define an unordered list?

a)

<list>

b)

<ul>

c)

<dl>

d)

<ol>

81.

What is the purpose of the alt attribute in an image tag?

a)

To define the image height

b)

To set the image width

c)

To provide alternative text for the image

d)

To specify the image source

82.

Which HTML tag is used to create a line break?

a)

<lb>

b)

<line>

c)

<break>

d)

<br>