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 <td></td> element?

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

2.

How can you open a link in a new tab/browser window?

<a href="url" new>
<a href="url" target="new">
<a href="url" target="_self">
<a href="url" target="_blank">

3.

What does HTML  stand for?

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

4.

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

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

5.

Which of the following is a valid color code.

505050
&505050
#505050
$505050

6.

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

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

7.

To add rows to your tables use which tags?

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

8.

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

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

9.

Which of the following examples shows correctly nested HTML elements?

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

10.

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

11.

What is the correct HTML for creating a hyperlink?

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

12.

Which of these tags are all <table> tags?

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

13.

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

14.

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

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

15.

What is cell padding?

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

16.

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

Title
Head
Body
Metatags

17.

Title

 

Which tag will produce HTML Quiz  in this picture?

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

18.

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

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

19.

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

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

20.

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

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