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.

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

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

2.

What is the correct HTML for making a text area?

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

3.

Which of the following examples shows correctly nested HTML elements?

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

4.

To add rows to your tables use which tags?

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

5.

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

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

6.

What is a block level element?

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

7.

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

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

8.

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

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

9.

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

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

10.

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

Syntax
Laws
Dialog
Tags

11.

How do you add a comment into HTML?

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

12.

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

Character
Font-type
Face
Text-type

13.

What is the <hr> tag used for?

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

14.

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

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

15.

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

16.

What attribute is used to specify number of rows?

Rowspan
Rownumb
rows
Rownum

17.

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 have become outdated and may become obsolete in the future
They are used for text formatting only

18.

Target=_blank specifies that a

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

19.

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

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

20.

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

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