wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML & CSS Quiz

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

Which HTML tag is used to create a paragraph?

a)

</P>

b)

<p>

c)

<paragraph>

d)

(p)

2.

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

3.

Which of the following is cosidered to be a selector?

a)

color

b)

body

c)

property

d)

text-align

4.

The CSS link to connect to the HTML page should be included between the <body> tags.

a)

true

b)

false

5.

What is the correct way to create a line break?

a)

<lb>

b)

<line break>

c)

<br>

d)

<hr>

6.

Which element creates the largest heading?

a)

<h2>

b)

<h3>

c)

<h6>

d)

<h1>

7.

Which element creates an ordered list?

a)

  1. <ol>

b)

  • <ul>

c)

  • <li>

d)

<il>

8.

What does CSS stand for?

a)

Colorful Style Sheets

b)

Creative Styling System

c)

Cascading Style Sheets

d)

Computer Style Syntax

9.

What is a CSS selector?

a)

A rule that colors text

b)

A symbol used for lists

c)

A pattern used to select HTML elements

d)

A CSS property

10.

Which is an example of a type selector?

a)

HTML

b)

h3

c)

p)

d)

<p>

11.

Which CSS property changes text color?

a)

font-color

b)

bg-color

c)

color

d)

text-style

12.

What CSS property changes the background color?

a)

color-bg

b)

background-color

c)

bg

d)

RGB

13.

Which CSS property changes the size of text?

a)

font-style

b)

font-size

c)

text-height

d)

size

14.

Which property makes text bold?

a)

bold

b)

font-weight

c)

text-bold

d)

weight

15.

What property centers text?

a)

align

b)

text-center

c)

text-align

d)

center

16.

Which CSS property adds spaces between letters?

a)

line-spacing

b)

padding-spacing

c)

letter-spacing

d)

element-space

17.

Which symbol ends a paragrah tag?

a)

/>

b)

</>

c)

<;>

d)

>/<

18.

Which symbol surrounds a declaration block (rule set)?

a)

()

b)

[]

c)

{}

d)

<>

19.

What is the proper link to use when connecting an HTML and a CSS file?

a)

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

b)

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

c)

<link rel="stylesheet hfed"style.css

d)

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

20.

Where must the CSS link tag be placed?

a)

Inside the body tags

b)

At the bottom of the page

c)

Inside the head tags

d)

Inside the <p> tags

21.

Which of the following is a valid color value?

a)

#ff0000

b)

rgb(255,,0)

c)

red

d)

#025

22.

Which CSS property changes the font family?

a)

font-type

b)

typeface

c)

font-family

d)

font-style

23.

What is the HTML tag for a list item?

a)

<ol>

b)

  • <li>

c)

<il>

d)

  • <ul>

24.

Which property changes the width of an element?

a)

block-size

b)

width

c)

element-width

d)

size-width

25.

Which CSS rule increases spacing between letters?

a)

letter-spacing

b)

word-spacing

c)

text-gap

d)

margin-text

26.

Which CSS value makes text italic?

a)

style: italic

b)

italic

c)

font-style: italic

d)

text-italic

27.

What tag of HTML is used to add CSS?

a)

body

b)

head

c)

html

d)

title

28.

Which is a valid CSS comment?

a)

< comment >

b)

# comment #

c)

/* comment */

d)

{ comment }

29.

Which is the correct format for a CSS rule set for an h3 heading?

a)

h3 {

color: orange;

font-size: 16px;

]

b)

h3 {

color: orange;

font-size: 16px;

c)

h2 {

color:;orange:

font-size; 16px:

}

d)

h3 {

color: orange;

font-size: 16px;

}

30.

Which is the correct format for a CSS rule set for a paragraph?

a)

p {

color: orange;

font-size: 16px;

}

b)

p {

color: orange;

font-size: 16px;

c)

p {

color:;orange:

font-size; 16px:

}

d)

{ p

color; orange;

font-size: 16px;

}

31.

The content of the web page goes in between which two tags?

a)

<head>

</head>

b)

<HTML>

</HTML>

c)

<Body>

</Body>

d)

<p>

</p>

32.

What is necessary to connect the HTML page with the CSS style page?

a)

HTML file

b)

Link tag

c)

Style.css file

d)

Rule Sets

33.

What is the correct HTML tag for inserting a line break?

a)

<lb>

b)

<line>

c)

<br>

d)

<break>

34.

A rule set includes what information?

a)

HTML tags and values

b)

selctor, property, value

c)

property, value, end tags

d)

selector, head tag, property

35.

What is another word you could use for selector?

a)

element

b)

link tag

c)

property

d)

value

36.

Which CSS property is used to add space inside an element, between its content and border?

a)

spacing

b)

border-spacing

c)

padding

d)

margin

37.

What is the correct HTML tag to insert an image?

a)

<img>

b)

<image>

c)

<picture>

d)

<src>

38.

Which CSS property controls the space between lines of text?

a)

letter-spacing

b)

text-spacing

c)

font-spacing

d)

line-height

39.

What is the proper format to include a property and a value for a selector?

a)

(property; value:)

b)

property: value;

c)

property: valeu:

d)

{property; value}

40.

If adding a border, which property would you use?

a)

border-decoration

b)

border-property

c)

border-style

d)

border-color

41.

Which CSS property is used to set the color of a border?

a)

border-width

b)

border-style

c)

color-border

d)

border-color

42.

What property is needed to create italics?

a)

font-family

b)

font-weight

c)

font-style

d)

font-italics

43.

Which heading is the smallest size?

a)

<h7>

b)

<h6>

c)

<h5>

d)

<h4>

44.

Which CSS property is used to change the color of text?

a)

background-color

b)

color

c)

text-color

d)

font-color

45.

There are six heading sizes.

a)

True

b)

False

46.

Which property is used when adding space between letters?

a)

text-shadow

b)

text-decoration

c)

letter-spacing

d)

line-spacing

47.

Which HTML tag is used to display an image?

a)

<src>

b)

<picture>

c)

<image>

d)

<img>

48.

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

a)

color

b)

background-color

c)

background

d)

bg-color

49.

Elements and selectors are the same regarding HTML.

a)

True

b)

False

50.

Which property is needed to change the font size?

a)

font:size

b)

font;size

c)

font_size

d)

font-size