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 preferred way for adding a background color in HTML?

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

2.

What is the correct format for inserting an image?

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

3.

Which of the following examples shows correctly nested HTML elements?

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

4.

Who is making the Web standards?

Mozilla
Microsoft
Google
The World Wide Web Consortium

5.

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

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

6.

To add rows to your tables use which tags?

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

7.

How do you add a comment into HTML?

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

8.

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

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

9.

Target=_blank specifies that a

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

10.

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

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

11.

Which of these tags are all <table> tags?

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

12.

What is the proper syntax of a form submit button?

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

13.

Why are hidden form fields useful?

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

14.

Which of the following is a valid color code.

&505050
505050
#505050
$505050

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.

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

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

17.

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

Head
Metatags
Body
Title

18.

What is the correct HTML for making a text area?

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

19.

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

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

20.

What does HTML  stand for?

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