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 correct HTML for making a text input field?

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

2.

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

Font-type
Character
Face
Text-type

3.

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

4.

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

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

5.

What will be the output of this code?

<!-- display some text--> 

<h1>Here is a heading</h1>

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

6.

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

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

7.

What is the correct HTML for making a text area?

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

8.

What is the proper syntax of a form submit button?

<input type="go" />
<input type="button" />
<input="submit" />
<input type="submit" />

9.

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

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

10.

What is cell padding?

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

11.

What is the correct HTML for making a checkbox?

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

12.

What is the <hr> tag used for?

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

13.

Should HTML be used to design and style a website?

No
Maybe
Yes
None of the above

14.

What tag is used to create an unordered list?

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

15.

What is the correct format for inserting an image?

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

16.

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

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

17.

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

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

18.

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

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

19.

Target=_blank specifies that a

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

20.

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

Laws
Dialog
Tags
Syntax