wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML and CSS

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

HTML is what type of language ?

a)

Scripting Language

b)

Markup Language

c)

Network Protocol

d)

Programming Language

2.

Apart from <b> tag, what other tag makes text bold ?

a)

<fat>

b)

<emp>

c)

<black>

d)

<strong>

3.

What tag is used to display a picture in a HTML page?

a)

picture

b)

src

c)

img

d)

image

4.

Which HTML tag produces the biggest heading?

a)

<h7>

b)

<h5>

c)

<h3>

d)

<h1>

5.

What is the correct syntax to change the background color with css?

a)

background-color: purple;

b)

background-color = "purple";

c)

backgroundcolor=orange

d)

change-background-color: purple

6.

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

a)

True

b)

False

7.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>

8.

TRUE OR FALSE: CSS is used to style web pages

a)

True

b)

False

9.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<ul>
b)
<li>
c)
<br>
d)
<h1>
10.
When using a text editor, what file extension(s) must be used when saving as a web document?
a)
txt
b)
html or htm
c)
doc
d)
css
11.
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)
12.

A ___________ is an icon, graphic, or text that links to another file or object. These are what allow web pages to connect to other web pages

a)

hyperlink

b)

HTML Tags

c)

browser

d)

<br>

13.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
14.
Defines a paragraph
a)
<pr>
b)
<p>
c)
<para>
d)
<par>
15.
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
a)
Search engines
b)
Websites
c)
Web Browsers
d)
Text editors
16.
Which is the correct HTML element for underlining text?
a)
<ul>
b)
<uline>
c)
<u>
d)
<under>
17.

What is the correct way to write a comment in HTML?

a)

/* comment */

b)

<!– comment –>

c)

ctrl + Ç

d)

<¡– comment –>

18.

What is the correct way to write a link in HTML?

a)

<link href=”#”>…<link>

b)

<a title=”#”>…</>

c)

<a src=”#”>…</a>

d)

<a href=”#”>…</a>

19.

What does CSS mean?

a)

Cascading Style Sheets

b)

Center Style Steels

c)

Calibre Style Sheet

d)

No answer is correct

20.

What is the correct order of the opening tags for a basic web structure?

a)

<body>, <head>, <html>

b)

<html>, <body>, <head>

c)

<html>, <head>, <body>

d)

<head>, <body>, <html>

21.
</h> is
a)
Header Tag
b)
Headline Tag
c)
Half of a tag
d)
Closing header tag
22.

td

a)

one cell in a header

b)

one column of a row

c)

one row of a column

d)

one data cell in a row

23.
The ......... .......... is the first page of the Web site. This page usually tells visitors what the site is about.
a)
home page
b)
main section
c)
subsections
d)
page
24.

Which tag does not need a closing tag?

a)

<a href>

b)

<head>

c)

<body>

d)

<img src>

25.
Which is NOT a web browser?
a)
Chrome
b)
Internet explorer
c)
FireFox
d)
Yahoo
26.
How would you centre a H2 heading?
a)
<h1 align="center">
b)
<h2 stickit="center">
c)
<h2 align=center>
d)
<h2 align="center">
27.

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

a)

a table row

b)

a table column

c)

a table header

d)

Thanos

28.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

29.

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

30.

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;