wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML/CSS Makeup Quiz

Total questions: 35

Worksheet time: 14mins

Name
Class
Date
1.

The following HTML code should only exist within which of the following tags?

<title>Coding with HTML</title>

a)

<head>

b)

<body>

c)

<h1>

2.

Which of the following tags would contain the HTML code for a web page's visible content?

a)

<body>

b)

<head>

c)

<html>

3.

What is this tag <li>?

a)

list item

b)

line indent

c)

left indent

4.

What is this tag <p>?

a)

paragraph

b)

picture

c)

perpendicular

5.

What is this tag <ul>?

a)

unordered list

b)

unordered line

c)

unknown line

6.

What is this tag <ol>?

a)

ordered list

b)

organized list

c)

ordered line

7.

Which tags go around the entire HTML document?

a)

<body></body>

b)

<html></html>

c)

<head></head>

d)

<h1></h1>

8.

Which CSS property changes text color?

a)

text-color

b)

textcolor

c)

color

d)

background-color

9.

Which of the following is a proper image element?

a)

<img src="dog.jpg" alt="dog"/>

b)

<imag src="dog.com" alt="dog">DOG</imag>

c)

<a src="http://dog.jpg" alt="dog"/>

d)

<img href="dog.jpg" alt="dog"/>

10.

Which of the following is a properly formed HTML element?

a)

<h1>Hello<h1>

b)

<h1 Hello /h1>

c)

<h1>Hello</h1>

d)

<h1>Hello</h>

11.

What is the complete HTML code for a paragraph element with text that says "Welcome"?

a)

<p>Welcome<p>

b)

</p>Welcome </p>

c)

<p>Welcome</p>

12.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
13.
Which line of code correctly creates a link to Amazon's website?
a)
<a ref=http://www.amazon.com>Amazon
b)
<href=http://www.amazon.com>Amazon<a>
c)
<a href="http://www.amazon.com">Amazon
d)
<a href="http://www.amazon.com">Amazon</a>
14.

Which is the proper way to write an h1 tag

a)

<h1>Hello</h1>

b)

<h1>"Hello

c)

{h1}Hello{/h1}

d)

<h1>Hello<h1>

15.
Which language gives a web page its style?
a)
HTML
b)
CSS
c)
JavaScript
d)
All 3
16.
Which HTML tag is best for Website titles?
a)
<img>
b)
<h4>
c)
<h1>
d)
<p>
17.
What color will h2 elements be?
a)
#00adad
b)
h2
c)
helvetica
d)

red

18.

What does the 'H1' tag represent in HTML?

a)

A medium-sized heading

b)

A subheading

c)

The largest heading

d)

The smallest heading

19.

What is the default behavior of the 'title' tag in HTML?

a)

It displays the title of the web page in the browser tab

b)

It creates a pop-up message when the mouse hovers over an element

c)

It sets the title of the web page as the header

d)

It defines the title of a section within the web page

20.

What is the purpose of the 'body' tag in HTML?

a)

It contains the main content of the web page

b)

It creates a link to another web page

c)

It defines the styling and layout of the web page

d)

It references external resources for the web page

21.

Which CSS property is used to add a line around an image?

a)

edge

b)

outline

c)

frame

d)

border

22.

Which is correct CSS syntax?

a)

{body; colour = black;}

b)

body: colour = black

c)

body {

colour : black;}

d)

{body colour is black}

23.

Which sets the colour of words in a paragraph

a)

h1 {

colour: pink }

b)

img {

colour: pink }

c)

p {

colour: pink }

d)

p {

color: pink }

24.

Select the rule to make all the text in your web page blue and centered.

a)

p {

colour: blue; }

b)

body {

text-align: left;

colour: blue; }

c)

p {

text-align: center

color: blue; }

d)

body {

text-align: center

color: blue; }

25.

The parts of HTML source code that mark the start and end of various parts of a webpage, and which consist of a command between the symbols '<' and '>' (< >) are called what?.

a)

Tags

b)

Elements

c)

Sections

d)

Labels

26.

TRUE OR FALSE:

HTML is used to style web pages.

a)

True

b)

False

27.

TRUE OR FALSE:

CSS is used to style web pages

a)

True

b)

False

28.

The part of the code highlighted in BLUE is called the _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

29.

The part of the code in blue is called the?

a)

Declaration

b)

Selector

c)

Property

d)

Value

30.
Select the code below that uses CSS to configure a background color of #000000 for a web page.
a)
body { background-color: #000000; }
b)
body { bgcolor: #000000; }
c)
document { background­-page: #000000; }
d)
None of these
31.

The part of the code highlighted in blue is called the:

a)

Declaration

b)

Selector

c)

Property

d)

Value

32.

The part of the code highlighted in blue is called the?

a)

Rule Set

b)

Selector

c)

Property

d)

Value

33.

What tags in the HTML will this CSS rule style?

a)
font-family
b)
h2
c)
h1
d)
color: red
34.

In the code below, what tags do you need to add to make the list a numbered list?

a)

<ol> </ol>

b)

<ul> </ul>

35.

What correction needs to be made in the code

a)

line 8 - <p> </p> tags needed

b)

line 8 - <li> </li> tags needed

c)

line 8 - <h6> </h6> tags needed