wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML CSS

Total questions: 30

Worksheet time: 10mins

Name
Class
Date
1.

What does a opening tag look like?

a)

< >

b)

</ >

c)

<< >>

d)

<

2.

What does a closing tag look like?

a)

< >

b)

<\ >

c)

</ >

d)

<< >>

3.

What should a HTML web page start with?

a)

<b>

b)

<li>

c)

<html>

d)

<start>

4.

What does this tag stand for? <b>

a)

bright

b)

big

c)

beautiful

d)

bold

5.

What is the difference between <h1> and <h2>?

a)

<h1> is larger in size than <h2>

b)

<h2> is larger in size than <h1>

c)

both are the same size but different headings

d)

none of the above

6.

Which tag would you use to insert a image?

a)

<marquee>

b)

< a href>

c)

<br>

d)

<img src>

7.

Which tag would you use to create a hyperlink?

a)

<a href>

b)

<img src>

c)

<br>

d)

<link>

8.

What type of tag is this: <!-- -->

a)

comments

b)

questions

c)

paragraph

d)

image

9.

In the tag <img src="Piedmont.jpg"/> what is the file name?

a)

<img

b)

.jpg

c)

</>

d)

Piedmont.jpg

10.

<p> is a _______ tag.

a)

image

b)

paragraph

c)

filename

11.

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>

12.

Which of the following codes would create a horizontal line

a)

<br>

b)

<h1></h1>

c)

<hr>

d)

<p>

13.

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

14.

<th></th> is the code for .....

a)

a table row

b)

a table column

c)

a table header

d)

Thanos

15.

Which of the following is the code for a paragraph to be blue?

a)

<td style=“background-color:blue;”>

b)

<h1 style=“font-size:60px;”>

c)

<p style=“color:blue;”>

d)

<tagname style=“property:value;”>

16.

When working with color codes RGB stands for...

a)

Green Red Purple

b)

Red Great Blue

c)

Red Green Blue

d)

Blue Green Raspberry

17.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
18.
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
19.

The stylesheet is used to

a)

code the css page.

b)

link css to the html page.

c)

add css to notepad++

d)

link java script to the html page.

20.

What is the proper CSS format for background color?

a)

back-ground color:orange:

b)

backgroundcolor-orange;

c)

background:color:orange;

d)

background-color:orange;

21.

Which one is the largest heading?

a)

h1

b)

h2

c)

h4

d)

h6

22.

Every html page is required to have a linked CSS page.

a)

True

b)

False

23.

Comments in coding is used to help

a)

the programmer

b)

anyone viewing the website

c)

the editor of the code

d)

the reader of the code

24.

What is the proper way to code a website title using HTML

a)

title{

New Website}

b)

<title>New Website</title>

c)

.tile New Website

d)

<title>New Website<title>

25.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<ul>
b)
<li>
c)
<br>
d)
<h1>
26.
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">
27.
Between which paired tags would the visible content of a webpage be displayed?
a)
<html></html>
b)
<head></head>
c)
<body></body>
d)
<title></title>
28.

HTML stands for

a)

Hyper Text Marker Language

b)

Hyper Text Marker Lingo

c)

Hyper Text Markup Language

d)

Hyper Text Markup Lingo

29.

CSS stands for

a)

Code Style Sheet

b)

Coding Style Sheet

c)

Cascading Sheet Style

d)

Cascading Style Sheet

30.
Which of the following is NOT a function of the <title> </title> element?
a)
Defines a title in the browser tab.
b)
Provides a title for the page when added to favorites/bookmarks
c)
Creates the first heading on the index page of the website
d)
Displays a title for the page in search engine results