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?

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

2.

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

Character
Font-type
Text-type
Face

3.

What is a block level element?

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

4.

If the background image is smaller than the screen, what will happen ?

It will repeat it self
It will stretch
It will leave a blank space at the bottom of your page
It will hide

5.

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

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

6.

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

7.

Should HTML be used to design and style a website?

No
Maybe
None of the above
Yes

8.

Which of the following tags do not make a valid HTML element?

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

9.

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

headings
paragraphs
inline elements
addresses

10.

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

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

11.

What is the correct tag for the smallest heading?

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

12.

How do you add a comment into HTML?

<!--Comment-->
<Comment/>
<--Comment-->
<-Comment->

13.

What will be the output of this code?

<!-- display some text--> 

<h1>Here is a heading</h1>

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

14.

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

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

15.

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 name="http://www.j1ocoders.com">j1oocoders.com</a>
<a>http://www.j100coders.com</a>

16.

What is the correct HTML for making a checkbox?

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

17.

What is the correct format for inserting an image?

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

18.

What is the <hr> tag used for?

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

19.

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

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

20.

What does HTML  stand for?

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