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 is a valid color code.

&505050
#505050
505050
$505050

2.

Why are hidden form fields useful?

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

3.

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

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

4.

What is the correct HTML for making a checkbox?

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

5.

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

inline elements
headings
paragraphs
addresses

6.

What will be the output of this code?

<!-- display some text--> 

<h1>Here is a heading</h1>

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

7.

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

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

8.

What attribute is used to specify number of rows?

rows
Rownumb
Rownum
Rowspan

9.

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>

10.

Should HTML be used to design and style a website?

None of the above
No
Maybe
Yes

11.

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

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

12.

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

Title
Body
Head
Metatags

13.

What is cell padding?

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

14.

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

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

15.

What is the correct tag for the smallest heading?

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

16.

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

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

17.

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

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

18.

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

19.

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

Tags
Laws
Dialog
Syntax

20.

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

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