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.

What is a block level element?

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

2.

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

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

3.

Which of the following examples shows correctly nested HTML elements?

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

4.

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

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

5.

What tag is used to create an unordered list?

<li>
<ul>
<ol>
<ulist>

6.

To add rows to your tables use which tags?

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

7.

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

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

8.

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

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

9.

Which of these tags are all <table> tags?

<table><tr><tt>
<table><head><tfoot>
<table><tr><td>
<thead><body><tr>

10.

HTML has a set of rules under which it operates. What is it called?

Laws
Dialog
Tags
Syntax

11.

What is the <hr> tag used for?

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

12.

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

headings
paragraphs
inline elements
addresses

13.

What attribute is used to specify number of rows?

Rownum
Rownumb
Rowspan
rows

14.

What is the correct HTML for making a drop-down list?

<select>
<list>
<input type="list">
<input type="dropdown">

15.

What is the correct HTML for making a checkbox?

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

16.

What is the correct format for creating an HTML text link?

<a "http://www.j100coders.org/">J100Coders</a>
<a>http://www.j100coders.org/</a>
<a href="http://www.j100coders.org/" />
<a href="http://www.j100coders.org/">J100Coders</a>

17.

What is the correct HTML for making a text area?

<input type="textfield">
<textarea>
<input type="textarea">
<input type="textbox">

18.

Which of the following is a valid color code.

505050
$505050
&505050
#505050

19.

What is the preferred way for adding a background color in HTML?

<background>yellow</background>
<bodybackgorund="yellow";>
<body background="yellow">
<body style="background-color:yellow;">

20.

What is the correct HTML for creating a hyperlink?

<a url="http://www.j100coders.com">j100coders.com</a>
<a href="http://www.j100coders.com">j100coders</a>
<a>http://www.j100coders.com</a>
<a name="http://www.j1ocoders.com">j1oocoders.com</a>