wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

test html and css

Total questions: 43

Worksheet time: 16mins

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 element is responsible for making the text bold in HTML?

a)

<pre>

b)

<a>

c)

<b>

d)

<br>

3.

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

a)

<h3>

b)

<h1>

c)

<h5>

d)

<h6>

4.

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

a)

<\ >

b)

<! >

c)

</ >

d)

<. >

5.

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>

6.

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

a)

<i>

b)

<italic>

c)

<pre>

d)

<it>

7.

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" />

8.

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

a)

<i>

b)

<pre>

c)

<ul>

d)

<u>

9.

Which of the following is the paragraph tag in HTML?

a)

<p>

b)

<b>

c)

<pre>

d)

None of the above

10.

An HTML program is saved by using the ____ extension.

a)

.ht

b)

.html

c)

.hml

d)

None of the above

11.

A program in HTML can be displayed and read by -

a)

Web browser

b)

Server

c)

Interpreter

d)

None of the above

12.

The tags in HTML are -

a)

case-sensitive

b)

in upper case

c)

not case sensitive

d)

in lowercase

13.

Which computer language structures all webpages on the internet?

a)

Java

b)

HTML

c)

CSS

d)

JS

14.

Challenge yourself

Code a paragraph that displays Hello HTML

a)

<p> Hello HTML </p>

b)

P = Hello HTML

15.

Which one of these tags creates a heading?

a)

<p>

b)

<h1>

c)

<img>

16.

Challenge yourself

Code a heading that displays Hello World

a)

<h1>Hello World</h1>

b)

h1= Hello World

c)

<h1>Hello World<h1>

17.

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

a)

insert image

b)

Paragraph

c)

Header

18.

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

a)

<br>

b)

<a>

c)

<b>

d)

<pre>

19.

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

a)

<h3>

b)

<h1>

c)

<h5>

d)

<h6>

20.

Challenge yourself

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

a)

<title> .... </title>

b)

<header> </header>

c)

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

21.
What does CSS stand for? 
a)
Creative Style Sheets
b)
Cascading Style Sheets
c)
Colorful Style Spread
d)
Computer Style Spread
22.
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
23.
Which is correct CSS syntax? 
a)
{ body; color=black;}
b)
body: color= black
c)
body {color:black;}
d)
(body color is black) 
24.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
25.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
26.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
27.
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.
28.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
29.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
30.
The style that you are applying to a selector, e.g. border.
a)
Property
b)
Value
c)
Keyword
d)
Length Units
31.
What is this an example of?
/* This is a multi-line comment */
a)
Syntax
b)
Property 
c)
Value
d)
Comment
32.
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 (-)
33.
Which is the selector in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
34.

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

35.
What does HTML stand for?
a)
Hypertext Medium Language
b)
Hippo Tries Making Licorice
c)
Hypertext Markup Lingo
d)
Hypertext Markup Language
36.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
37.
What HTML element defines the title of the document?
a)
<title>
b)
<head>
c)
<meta>
38.
the tag <IMG> would insert what into a web page?
a)
Insert a title
b)
Insert a link
c)
Insert an image
39.
Which format usually works best for photos?
a)

JPEG

b)

DOC

c)

GIF

d)

WAV

40.
<p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
41.
</p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
42.
<body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
43.

What goes in the <head> section?

a)

A brain

b)

the title

c)

hair

d)

the body