wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML QUIZ

Total questions: 17

Worksheet time: 22mins

Name
Class
Date
1.

What does this tag mean?

<!DOCTYPE html>

a)

It is telling the browser that the code is HTML 4.

b)

It is telling the browser that the code is HTML 5.

c)

It means it is a XML Document.

d)

It means it is a XHTML Document.

2.

The <!DOCTYPE html> tag is required on all HTML Documents.

a)

True

b)

False

3.

The <center> and <font> elements is a new HTML 5 element.

a)

True

b)

False

4.

The <p> element is used for:

a)

Images

b)

Buttons

c)

Text

d)

Links

5.

Martha used the _____ attribute to section multiple things with the same name.

Example: <div ___ ="nav">

(a)  

6.

You can resize the image inside the <img> tag using HTML.

a)

True

b)

False

7.

A programmer wants to make a article section in HTML 5.

What are 3 possible ways he could do that?

a)

<div id="article">

<p>This is a article.</p>

</div>

b)

<div class="article">

<p>This is a article.</p>

</div>

c)

<main-article class="article">

<p>This is a article.</p>

</main-article>

d)

<article>

<p>This is a article.</p>

</article>

8.

Somebody wanted to make a navigation bar without HTML 5.

How would he likely do it?

a)

<HTML-4-nav>

<ul>

<li>Home</li>

<li>Products</li>

</ul>

</HTMl-4-nav>

b)

<div class="nav">

<ul>

<li>Home</li>

<li>Products</li>

</ul>

</div>

c)

<nav>

<ul>

<li>Home</li>

<li>Products</li>

</ul>

</nav>

d)

<navigation>

<ul>

<li>Home</li>

<li>Products</li>

</ul>

<navigation>

9.

BONUS: What is this tag?

<hr />

a)

It is a element that creates a link.

b)

It is a element that creates a line.

c)

It is a element that creates bold text.

10.

Which element do you use to put CSS styles inside a HTML document.

a)

<styles>

b)

<css>

c)

<css-style>

d)

<style>

11.

Which element do you use to put JavaScript inside HTML?

a)

<script>

b)

<javascript>

c)

<scripts>

12.

Which element is used for a HYPERLINK?

a)

<link rel="hyperlink" href="https://example.org">Click Me!</link>

b)
13.

All of these elements can be used in CSS instead:

<b> <i> <u> <s> <ins> <del>

a)

True

b)

False

14.

How do you make a hyperlink that opens in a new tab?

a)

<a href="https://example.org" link="open-in-new-tab">Click Me!</a>

b)

<a href="https://example.org" target="blank">Click Me!</a>

c)

<a href="https://example.org" target="_blank">Click Me!</a>

15.

The six headers in order are:

a)

<h1>

<h2>

<h3>

<h4>

<h5>

<h6>

b)

<h6>

<h5>

<h4>

<h3>

<h2>

<h1>

16.

How can you make text inside a <p> element bold?

<p><_>Some bold text</_></p>

(a)  

17.

How do you feel about HTML so far?

a)

😎

I'm a pro!

b)

🙂

I'm good at this!

c)

😐

I guess it's okay.

d)

🤔

I don't quite understand it.

e)

😢

I have no idea and do not like HTML.