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 <hr> tag used for?

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

2.

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>

3.

What tag is used to create an unordered list?

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

4.

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

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

5.

What is the correct format for inserting an image?

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

6.

The attribute used to choose the type of font in HTML is ?

Text-type
Font-type
Character
Face

7.

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

paragraphs
headings
inline elements
addresses

8.

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

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

9.

Title

 

Which tag will produce HTML Quiz  in this picture?

<head>HTML Quiz </head>
<top>HTML Quiz </top>
<title>HTML Quiz </title>
<H1>HTML Quiz </H1>

10.

What is the correct HTML for making a text area?

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

11.

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

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

12.

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

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

13.

Between which tags does most of the contents needs to be placed?

<head></head>
<body></body>
<title></title>
<text></text>

14.

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

15.

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

16.

What is a block level element?

an element that blends in without interrupting the flow of surrounding element
an element that increases other elements' visibility
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

17.

To add rows to your tables use which tags?

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

18.

What is cell padding?

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

19.

What does HTML  stand for?

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

20.

What will be the output of this code?

<!-- display some text--> 

<h1>Here is a heading</h1>

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