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.

How do you add a comment into HTML?

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

2.

What is the correct format for inserting an image?

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

3.

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 hide
It will repeat it self
It will stretch

4.

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

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

5.

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 increases other elements' visibility
an element that stands out by forces line breaks before and after itself

6.

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

paragraphs
headings
addresses
inline elements

7.

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

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

8.

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/">J100Coders</a>
<a>http://www.j100coders.org/</a>

9.

Which of the following tags do not make a valid HTML element?

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

10.

Which of these tags are all <table> tags?

<table><head><tfoot>
<table><tr><tt>
<thead><body><tr>
<table><tr><td>

11.

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

Metatags
Body
Head
Title

12.

What does HTML  stand for?

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

13.

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

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

14.

What is the correct tag for the smallest heading?

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

15.

What is cell padding?

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

16.

What is the correct HTML for making a text area?

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

17.

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

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

18.

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

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

19.

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

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

20.

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

Character
Text-type
Font-type
Face