Quizes & Games

HTML Quiz

The test contains 20 questions and it's not official, it's just a nice way to see how much you know, or don't know, about HTML.

1.

Which of the following tags do not make a valid HTML element?

<html> </html>
<head> <head>
<body> </body>
<title> </title>

2.

Which of the following will display a password field in a form?

<input type="pass" name="pwd" />
<input type="password" name="pwd" />
<input password="password"/>
<input type="text" name="pwd" />

3.

What is the correct tag for the smallest heading?

<h7>
<h6>
<h1>
<small>

4.

What is the correct HTML for making a text input field?

<textinput type="text">
<input type="text">
<input type="textfield">
<textfield>

5.

Which of the following examples shows correctly nested HTML elements?

<html></html><head></head><body></body>
<html><head><head><body><body><html>
<html><head><body></html></head></body>
<html><head></head><body></body></html>

6.

Target=_blank specifies that a

the page is defined as a target and will be found by the arrow command.
when clicking a link, it will open in a new window.
the page will shut down.
window will open blank.

7.

Choose the correct HTML to left-align the content inside a table cell?

<tdleft>
<td leftalign>
<td valign="left">
<td align="left">

8.

Title, meta and link elements are all located inside what element?

The Div Element
The Body Element
The Head Element
The Form Element

9.

What is the correct format for inserting an image?

<img>photo.jpg</img>
<img src="photo.jpg">
<image src="photo.jpg">
<img href="photo.jpg">

10.

Should HTML be used to design and style a website?

Maybe
None of the above
No
Yes

11.

What is a block level element?

an element that blends in without interrupting the flow of surrounding element
an element that stands out by forces line breaks before and after itself
an element that increases other elements' visibility
a brightly-colored element that comes in multiple shapes ideal for stacking

12.

What does it mean when tags or attributes are said to be deprecated?

They only work in special browsers
They are used in only HTML.
They are used for text formatting only
They have become outdated and may become obsolete in the future

13.

<h1> and <h3> are examples of what?

addresses
inline elements
headings
paragraphs

14.

Which character entity would you use to display extra spaces on a webpage?

& lt;
& nbsp;
& space;
& amp;

15.

To add rows to your tables use which tags?

<td> </td>
<cr> </cr>
<row> </row>
<tr> </tr>

16.

What is the <td></td> element?

a table description
a tabular distortion
a table head cell
a table data cell

17.

What is the correct HTML for making a checkbox?

<input type="check">
<input type="checkbox">
<check>
<checkbox>

18.

Who is making the Web standards?

Google
The World Wide Web Consortium
Microsoft
Mozilla

19.

What is the <hr> tag used for?

For creating vertical lines
For creating straight horizontal lines
For drawing high lines
For creating circles

20.

Which section is used for text and tags that are shown directly on your web page ?

Body
Title
Head
Metatags