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.

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

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

2.

What will be the output of this code?

<!-- display some text--> 

<h1>Here is a heading</h1>

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

3.

What is a block level element?

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

4.

What is the correct HTML for making a checkbox?

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

5.

What is the correct tag for the smallest heading?

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

6.

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

Body
Metatags
Head
Title

7.

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

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

8.

What tag is used to create an unordered list?

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

9.

Target=_blank specifies that a

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

10.

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

11.

What is the <hr> tag used for?

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

12.

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

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

13.

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 in only HTML.
They are used for text formatting only

14.

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

15.

Why are hidden form fields useful?

because they stay out of the way
because their values are unique
because what you don't know can't hurt you
because they can hold onto data for use later on

16.

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

Face
Text-type
Font-type
Character

17.

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

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

18.

What is the correct HTML for making a text area?

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

19.

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

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

20.

What is the proper syntax of a form submit button?

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