Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Freecodecamp - lesson 1

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of these makes a 'top level heading'

a)

<p> </p>

b)

<h1> </h1>

c)

<h2> </h2>

d)

<a> </a>

2.

How do you start a comment in HTML

a)

<!--

b)

! --

c)

< comment >

d)

#--

3.

How do you end a comment in HTML?

a)

--!

b)

--#

c)

-->

d)

end comment >

4.

What are the two 'child elements' in this picture?

a)

<main> + <h1>

b)

<h1> + <p>

c)

<main> + <p>

d)

<a> + <h2>

5.

<img> tags are self closing?

a)

True

b)

False

6.

Why won't the following code work?

<img scr = "cats.jpg" alt="picture of cats">

a)

There is no closing tag

b)

the alt is not formatted correctly

c)

the scr should say src

d)

pictures of cats don't work on the internet

7.

What does the a stand for in the following code?

<a href="https://freecodecamp.org">this links to freecodecamp.org</a>

a)

anchor

b)

advert

c)

attention

d)

a link

8.

Is the link in the picture a link to an internal link or an external link?

a)

Internal

b)

External

9.

target="_blank" in a link means what?

a)

That nothing will happen when clicked on

b)

That the link will turn white

c)

That the link doesn't work

d)

That the link will open in a new window

10.

What happens if you put this: href="#" into your link code?

a)

It will make the link 'dead'

b)

It will make the link go to the top of the page

c)

It will link to the previous website

d)

It will link to all the # elements