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 the correct format for creating an HTML text link?

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

2.

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">

3.

Should HTML be used to design and style a website?

Maybe
None of the above
Yes
No

4.

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

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

5.

Which of these tags are all <table> tags?

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

6.

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

Metatags
Title
Head
Body

7.

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

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

8.

What tag is used to create an unordered list?

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

9.

What is the correct HTML for making a checkbox?

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

10.

What attribute is used to specify number of rows?

Rownumb
Rowspan
Rownum
rows

11.

What is the correct tag for the smallest heading?

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

12.

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
Here is a heading
display some text

13.

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

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

14.

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

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

15.

What is the <hr> tag used for?

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

16.

Why are hidden form fields useful?

because what you don't know can't hurt you
because they stay out of the way
because they can hold onto data for use later on
because their values are unique

17.

What is the correct HTML for creating a hyperlink?

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

18.

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>

19.

What is cell padding?

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

20.

What is the proper syntax of a form submit button?

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