wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

html 1

Total questions: 16

Worksheet time: 24mins

Name
Class
Date
1.

____ ____ is an inline HTML element that defines a hyperlink.

a)

<b> tag

b)

<p> tag

c)

<a> tag

d)

<url> tag

2.
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
3.
Which is the value in this CSS?
p {color: red;}
a)
p
b)
color
c)
red
4.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
5.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
6.

Identify the CSS code use to create this border.

a)

p {border: 5px solid pink;

border-radius:25px; }

b)

p {border: 5px double pink;

border-radius:25px; }

c)

p {border: 5px solid pink; }

d)

p {border: 5px dotted pink;

border-radius:25px; }

7.

What are the three types of style sheet

a)

Internal, external, inline

b)

Inline, internal, extreme

c)

Insidious, internal, external

d)

None of the above

8.

Which of the following codes would create a horizontal line

a)

<br>

b)

<h1></h1>

c)

<hr>

d)

<p>

9.

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

a)

A. <i>

b)

B. <italic>

c)

C. <it>

d)

D. <pre>

10.

Which tag should be used to display text in the smallest heading level ?

a)

<h1>

b)

<h5>

c)

<h6>

d)

<h10>

11.

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>

12.

an _____ _____ stays in the same line as the code that surrounds the text.

a)

block element

b)

inline element

c)

HTML tags

d)

alt attribute

13.

a _____ _____ is any element that starts a new line (e.g., paragraph) and uses the full width of the page or container.

a)

inline element

b)

img href

c)

CSS ID

d)

block element

14.

Which is NOT a valid CSS property

a)

font-size

b)

color

c)

text-size

d)

text-align

15.

By default, the linked page will be displayed in ______________ browser window.


In other words, where will the following link open:

<a href="https://www.w3schools.com/">Visit W3Schools!</a>

a)

the current

b)

a new

c)

the target

d)

a blank

16.

What is missing from this image tag?


<img="cat.jpeg" alt="cat"/>

a)

h1

b)

h6

c)

.jpeg

d)

src=