wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML CSS FINAL 2

Total questions: 126

Worksheet time: 2hrs 35mins

Name
Class
Date
1.

1) HTML stands for -

a)

HighText Machine Language

b)

HyperText and links Markup Language

c)

HyperText Markup Language

d)

None of these

2.

Which of the following tag is used for inserting the largest heading in HTML?

a)

<h3>

b)

<h1>

c)

<h5>

d)

<h6>

3.

Which character is used to represent the closing of a tag in HTML?

a)

<\ >

b)

<! >

c)

</ >

d)

<. >

4.

How to create a hyperlink in HTML?

a)

<a href = "www.javatpoint.com"> javaTpoint.com </a>

b)

<a url = "www.javatpoint.com" javaTpoint.com /a>

c)

<a link = "www.javatpoint.com"> javaTpoint.com </a>

d)

<a> www.javatpoint.com <javaTpoint.com /a>

5.

Which of the following element is responsible for making the text italic in HTML?

a)

<i>

b)

<italic>

c)

<pre>

d)

<it>

6.

How to insert an image in HTML?

a)

<img href = "jtp.png" />

b)

<img url = "jtp.png" />

c)

<img link = "jtp.png" />

d)

<img src = "jtp.png" />

7.

Which of the following tag is used to make the underlined text?

a)

<i>

b)

<pre>

c)

<ul>

d)

<u>

8.

Which of the following is the paragraph tag in HTML?

a)

<p>

b)

<b>

c)

<pre>

d)

None of the above

9.

An HTML program is saved by using the ____ extension.

a)

.ht

b)

.html

c)

.hml

d)

None of the above

10.

A program in HTML can be displayed and read by -

a)

Web browser

b)

Server

c)

Interpreter

d)

None of the above

11.

The tags in HTML are -

a)

case-sensitive

b)

in upper case

c)

not case sensitive

d)

in lowercase

12.

Which computer language structures all webpages on the internet?

a)

Java

b)

HTML

c)

CSS

d)

JS

13.

Challenge yourself

Code a paragraph that displays Hello HTML

a)

<p> Hello HTML </p>

b)

P = Hello HTML

14.

Which one of these tags creates a heading?

a)

<p>

b)

<h1>

c)

<img>

15.

Challenge yourself

Code a heading that displays Hello World

a)

<h1>Hello World</h1>

b)

h1= Hello World

c)

<h1>Hello World<h1>

16.

<img> is a ............. tag

a)

insert image

b)

Paragraph

c)

Header

17.

Which of the following element is responsible for making new line in HTML?

a)

<br>

b)

<a>

c)

<b>

d)

<pre>

18.

Which of the following tag is used for inserting the smallest heading in HTML?

a)

<h3>

b)

<h1>

c)

<h5>

d)

<h6>

19.

Challenge yourself

Code a title inside the head section .....

a)

<title> .... </title>

b)

<header> </header>

c)

<h1>........<h1>

20.

creates a header for the document

a)

<Head>

b)

<H2>

c)

<Title>

d)

<Header>

21.

starts a new paragraph

a)

<P>

b)

<Paragraph>

c)

<B>

d)

</P>

22.

places the text in the middle of the page

a)

<Center>

b)

<C>

c)

<M>

d)

<Middle>

23.

Identifies the document as a web page

a)

<HTML>

b)

<WEB>

c)

</HTML>

d)

<PAGE>

24.

Insert a horizontal line of a particular size

a)

<HR size=2>

b)

<H1>

c)

<HR>

d)

<LINE>

25.

starts a new line

a)

<BR>

b)

<L>

c)

<HR>

d)

<LINE>

26.

Signifies the size of the heading

a)

<H2>

b)

<HR size=2>

c)

<H SIZE =2>

d)

<H=2>

27.

places text at the top of the browser window

a)

<Title>

b)

</Title>

c)

<Head>

d)

<Header>

28.

Choose the code that correct the error

<IMG SRC=”tiger.jg” ALT=”picture of a tiger”>

a)

<IMG SRC=”tiger.jpg” ALT=”picture of a tiger”>

b)

<IMG SRC=tiger.jpg ALT=”picture of a tiger”>

c)

<IMG SRC”tiger.jpg” ALT=picture of a tiger>

d)

<IMG =”tiger.jpg” ALT=”picture of a tiger”>

29.

Choose the code that correct the error

<AHREF="http://www.google.com"> This link goes to the Google search page.</A>

a)

<A HREF="http://www.google.com"> This link goes to the Google search page.</A>

b)

<A HREF=http://www.google.com> This link goes to the Google search page.</A>

c)

<A ><HREF=http://www.google.com> This link goes to the Google search page.</A>

d)

<A HREF="http://www.google.com> This link goes to the Google search page.</A>

30.

Choose the code that correct the error

<HEAD><TITLE>Unicorn land </HEAD>

a)

<HEAD><TITLE>Unicorn land </TITLE></HEAD>

b)

<HEAD><TITLE>Unicorn land <TITLE></HEAD>

c)

<HEAD><TITLE>Unicorn land </TITLE><HEAD>

d)

<HEAD><TITLE>Unicorn land <TITLE><HEAD>

31.

Choose the code that correct the error

<A HREF=”http://disney.go.com”><IMG SRC”mickeymouse.jpg”></A>

a)

<A HREF=”http://disney.go.com”><IMG SRC=”mickeymouse.jpg”></A>

b)

<AHREF=”http://disney.go.com”><IMG SRC=”mickeymouse.jpg”></A>

c)

<A HREF=http://disney.go.com><IMG SRC=mickeymouse.jpg></A>

d)

<A HREF=”http://disney.go.com”><IMG SRC=”mickeymouse.jg”></A>

32.

Choose the code that correct the error

</BODY><HTML>

a)

</BODY></HTML>

b)

</BODY>/HTML>

c)

BODY></HTML>

d)

</BODY>

33.
What does HTML stand for?
a)
Hypertext Making Language
b)
Hyper Transfer Markup Language
c)
Hypertext Markup Language
d)
Hyper Transfer Making Language
34.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
35.
A <tag>
a)
Is used to divide sections
b)
Is not needed in HTML
c)
Tells the browser how to format our content
d)
Is part of the title line in HTML
36.
<h> is
a)
Header Tag
b)
Headline Tag
c)
Half of a tag
d)
Closing header tag
37.
New heading tags can be added by using;
a)
Letters (ie: ha; hb)
b)
Numbers (i.e: h1; h2)
c)
Quotations (ie: h'; h")
d)
You can't do this
38.
<p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
39.
</p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
40.
An attribute is a; 
a)

Applies changes to everything

b)

Different options for each tag

c)

Allows for no changes to the site

d)

Gives structure and text

41.
Style tags are used to;
a)
Apply style to one line
b)
Not used in HTML
c)
Used at the top of the page to apply a style to the entire document
d)
Used sparingly
42.
<style>
a)
Found at top of styling options
b)
Allows a heading to be written
c)
Allows the body to be written
d)
Allows attributes to be included
43.
</style>
a)
Found at the bottom of styling options
b)
Allows a heading to be written
c)
Allows the body to be written
d)
Allows attributes to be included
44.
Body tags are used;
a)
Used for only the header
b)
Used only for the paragraph
c)
element that wraps everything that is visible on the page.
d)
Not used in HTML
45.
<body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
46.
</body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
47.
A Header;
a)
Must include your name
b)
First Line of your code
c)
Found at bottom of your code
d)
Not needed in HTML
48.
<html>
a)
Gives you structure and text
b)
Not needed when creating HTML sites
c)
Goes after the <h1>
d)
Goes after the <body>
49.
</html>
a)
Found after </h1>
b)
Found after </style>
c)
Found after </body>
d)
Found at bottom of written code
50.
<img> tag finds;
a)
finds the image located at the a URL and the src attribute and then displays it.
b)
finds the image located at the SRC in the URL attribute and then displays it.
c)
Adds a cool picture
d)
Does not work in HTML coding
51.
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
52.
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>
53.
Which tag defines the visible content of a web document?
a)
<head>
b)
<meta>
c)
<title>
d)
<body>
54.
_____is a text file that contains CSS formatting instructions to define the font, color and position of elements used on any markup page(s) to which you attach the style sheet.
a)
<DOCTYPE!>
b)
<main>
c)
An external CSS file, or style sheet
d)
HTML
55.
Which is the most current version of CSS?
a)
CSS1
b)
CSS2
c)
CSS3
d)
CSS4
56.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
57.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
58.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
59.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
60.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
61.
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
62.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
63.
Which CSS code is incorrect?
a)
a {color: blue;}
b)
p {font-size: 10px;}
c)
body {background-color="red";}
d)
img {width: 100%;}
64.
The code for the comment tag in CSS is
a)
<!-- comment -->
b)
<!-- comment >
c)
/* comment /*
d)
/* comment */
65.
A selector (ex: h1{ } ) can only have 1 property
a)
true
b)
false
66.
What unit of measurement does CSS use for size?
a)
px
b)
em
c)
%
d)
All work
67.
Which of the following is the proper way to code an inline style attribute?
a)
color=blue
b)
color="blue"
c)
color blue
d)
color=(blue)
68.
What is the purpose of HTML
a)
To make a formatted document
b)
To make a webpage
c)
To edit photos
d)
To make a creative slide
69.

What symbol should you use to target a class name in css?

a)

#

b)

()

c)

.

d)

class

70.

TRUE OR FALSE: HTML is used to style web pages.

a)

True

b)

False

71.

Change the border size of the body or image

a)

border-style

b)

border-width

c)

border-color

d)

width

72.

To create a dotted border around the page

a)

border-style

b)

border-width

c)

border-color

d)

width

73.

Set the color of the border

a)

border-style

b)

border-width

c)

border-color

d)

width

74.

sets the element to one side of the page

a)

margin

b)

width

c)

float

d)

height

75.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

76.

What does a class do?

a)

adds color to words

b)

adds style to specific elements

c)

adds style to a whole page

d)

adds a lot more work

77.

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

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

78.

Which selector will change the font of the text?

a)

font-size

b)

text-align

c)

font-famiy

d)

text-decoration

79.

What will this rule set create?


h1 {

text-decoration: underline overline dotted red;

}

a)

red waves under the heading

b)

red dots over and under the heading

c)

red waves over and under the heading

d)

red dots over the heading

80.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

81.

This is a picture of a ____.

a)

CSS Rule

b)

HTML Rule

c)

Tags

d)

Coding

82.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

83.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

84.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

85.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

86.

What color will this element be?

a)

Green

b)

Blue

c)

Red

d)

No color

87.

Looking at the picture below, based on those 3 important rules to remember, what will the color of the text be?

a)

Red

b)

Blue

c)

No color

d)

White

88.

The color this element will be________

a)

Blue

b)

Red

c)

Blue

d)

No color

89.

The tag #blue-text is written twice. Due to the "Order of Precedence" the text that will appear when you run the code will be what color?

a)

Red

b)

Blue

c)

Green

d)

Purple

90.

CSS is the...

a)

language for designing web pages

b)

longitudinal compass for directions

c)

way we send information to each computer

d)

way we set up each tag

91.
What does CSS stand for? 
a)
Creative Style Sheets
b)
Cascading Style Sheets
c)
Colorful Style Spread
d)
Computer Style Spread
92.
Where in the HTML document is the correct location to insert code to link to your external CSS? 
a)
In the <head> section
b)
In the <body> section
c)
At the very end of the document
d)
At the very beginning of the document
93.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
94.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
95.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
96.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
97.
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.
98.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
99.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
100.
The style that you are applying to a selector, e.g. border.
a)
Property
b)
Value
c)
Keyword
d)
Length Units
101.
What is this an example of?
/* This is a multi-line comment */
a)
Syntax
b)
Property 
c)
Value
d)
Comment
102.
If you want to have more than one property for a CSS selector, what character separates them?
a)
comma (,)
b)
semi-colon (;)
c)
colon (:)
d)
dash (-)
103.
Which is the selector in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
104.

What is wrong with this code?

a)

The style sheet <link> statement belongs between <head> and </head>

b)

The style sheet <link> statement belongs between <title> and </title>

c)

The style sheet <link> statement belongs between </head> and <body>

d)

The style sheet <link> statement belongs immediately after the DOCTYPE statement

105.
________ positioning keeps the element in the normal document flow, while ________ positioning takes it out of the normal flow.
a)
relative, absolute
b)
absolute, relative
c)
fixed, static
d)
parallel, universal
106.
CSS instructions can be:
-Applied inline to individual HTML elements on an HTML page.
-Embedded within an HTML page to affect all specified elements on that page.
-Collected in an external file that is linked to multiple HTML pages.
a)
True
b)
False
107.
_____is a text file that contains CSS formatting instructions to define the font, color and position of elements used on any markup page(s) to which you attach the style sheet.
a)
<DOCTYPE!>
b)
<main>
c)
An external CSS file, or style sheet
d)
HTML
108.
Which is the most current version of CSS?
a)
CSS1
b)
CSS2
c)
CSS3
d)
CSS4
109.
What does HTML stand for?
a)
Hypertext Medium Language
b)
Hippo Tries Making Licorice
c)
Hypertext Markup Lingo
d)
Hypertext Markup Language
110.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
111.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
112.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
113.
The content of the web (such as your pictures, text, links) will show up here. 
a)
Head
b)
Body
c)
Style
d)
Folder
114.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
115.
There simple, easy-to-use programs allow you to enter, edit, save, and print text.
a)
text editor
b)
web browser
c)
domain name
d)
webmaster
116.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
117.
What code is a heading?
a)
h1
b)
p
c)
b
d)
a
118.
CSS controls the.....
a)
Coding
b)
Subject Matter
c)
Style
d)
Robots
119.
P is for......
a)
place
b)
part
c)
potty
d)
paragraph
120.
<html>
a)
Gives you structure and text
b)
Not needed when creating HTML sites
c)
Goes after the <h1>
d)
Goes after the <body>
121.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
122.
</h> is
a)
Header Tag
b)
Headline Tag
c)
Half of a tag
d)
Closing header tag
123.
</html>
a)
Found after </h1>
b)
Found after </style>
c)
Found after </body>
d)
Found at bottom of written code
124.
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.
125.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
126.

What is a CSS selector?

a)

The value in a markup tag you want to change with a CSS style

b)

Any element to which designated styles are applied

c)

A format instruction in a CSS file

d)

The property in a markup tag to which designated styles are applied