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 a block level element?

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
a brightly-colored element that comes in multiple shapes ideal for stacking

2.

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

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

3.

What is the correct tag for the smallest heading?

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

4.

To add rows to your tables use which tags?

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

5.

Why are hidden form fields useful?

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

6.

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="_blank">
<a href="url" target="new">

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 correct format for creating an HTML text link?

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

9.

How do you add a comment into HTML?

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

10.

Who is making the Web standards?

Mozilla
The World Wide Web Consortium
Microsoft
Google

11.

What is the proper syntax of a form submit button?

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

12.

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

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

13.

What is the <hr> tag used for?

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

14.

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

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

15.

What is the correct HTML for creating a hyperlink?

<a href="http://www.j100coders.com">j100coders</a>
<a>http://www.j100coders.com</a>
<a url="http://www.j100coders.com">j100coders.com</a>
<a name="http://www.j1ocoders.com">j1oocoders.com</a>

16.

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

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

17.

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

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

18.

Title

 

Which tag will produce HTML Quiz  in this picture?

<H1>HTML Quiz </H1>
<head>HTML Quiz </head>
<title>HTML Quiz </title>
<top>HTML Quiz </top>

19.

What is the correct format for inserting an image?

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

20.

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

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