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 cell padding?

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

2.

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

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

3.

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

Syntax
Dialog
Tags
Laws

4.

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

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

5.

What does HTML  stand for?

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

6.

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

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

7.

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

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

8.

What is a block level element?

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

9.

What is the correct tag for the smallest heading?

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

10.

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

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

11.

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

inline elements
paragraphs
headings
addresses

12.

Target=_blank specifies that a

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.
the page will shut down.

13.

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

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

14.

What is the correct format for inserting an image?

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

15.

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

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

16.

Which of the following examples shows correctly nested HTML elements?

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

17.

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

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

18.

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

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

19.

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

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

20.

Should HTML be used to design and style a website?

None of the above
Yes
Maybe
No