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.

To add rows to your tables use which tags?

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

2.

What is the <hr> tag used for?

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

3.

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

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

4.

What is the correct tag for the smallest heading?

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

5.

What attribute is used to specify number of rows?

Rowspan
Rownumb
rows
Rownum

6.

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

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

7.

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

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

8.

What is cell padding?

Used to provide width to a cell
Used to separate cell walls from their contents.
Both a and b above
Used to set space between cells

9.

What is the proper syntax of a form submit button?

<input="submit" />
<input type="go" />
<input type="submit" />
<input type="button" />

10.

Target=_blank specifies that a

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

11.

What is the correct format for inserting an image?

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

12.

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

addresses
inline elements
headings
paragraphs

13.

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

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

14.

What does HTML  stand for?

Holy Text Many Languages
Hyperlinks and Text Markup Language
Hyper Text Markup Language
Home Tool Markup Language

15.

Which of the following examples shows correctly nested HTML elements?

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

16.

What will be the output of this code?

<!-- display some text--> 

<h1>Here is a heading</h1>

display some text
Here is a heading
Here is a heading
display some text Here is a heading

17.

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

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

18.

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

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

19.

One of the following statements is correct. Which one is it?

HTML Files Can Contain PHP Code
HTML Separates Style From Design
HTML Does Not Require the Use of a Server
File Extensions Are Not Important

20.

What is the correct HTML for creating a hyperlink?

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