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.

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

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

2.

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

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

3.

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

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

4.

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

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

5.

What is the correct HTML for making a text area?

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

6.

What attribute is used to specify number of rows?

Rowspan
Rownum
rows
Rownumb

7.

Should HTML be used to design and style a website?

No
Maybe
None of the above
Yes

8.

What is cell padding?

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

9.

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

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

10.

What is the correct HTML for making a checkbox?

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

11.

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

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

12.

What is the <hr> tag used for?

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

13.

What is the correct format for inserting an image?

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

14.

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

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

15.

To add rows to your tables use which tags?

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

16.

What is the correct tag for the smallest heading?

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

17.

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

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

18.

Target=_blank specifies that a

when clicking a link, it will open in a new window.
window will open blank.
the page will shut down.
the page is defined as a target and will be found by the arrow command.

19.

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

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

20.

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

Metatags
Head
Title
Body