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 the <hr> tag used for?

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

2.

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

3.

What is the correct format for inserting an image?

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

4.

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

Metatags
Body
Title
Head

5.

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

inline elements
headings
paragraphs
addresses

6.

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

7.

Title

 

Which tag will produce HTML Quiz  in this picture?

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

8.

Which of the following is a valid color code.

&505050
$505050
505050
#505050

9.

To add rows to your tables use which tags?

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

10.

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

11.

Should HTML be used to design and style a website?

None of the above
Maybe
No
Yes

12.

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

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

13.

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

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

14.

What is the correct HTML for making a checkbox?

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

15.

How do you add a comment into HTML?

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

16.

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

17.

What is the correct HTML for making a text area?

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

18.

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

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

19.

Which of these tags are all <table> tags?

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

20.

Who is making the Web standards?

Mozilla
The World Wide Web Consortium
Microsoft
Google