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.

Which of the following is a valid color code.

&505050
$505050
#505050
505050

2.

What does HTML  stand for?

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

3.

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

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

4.

What is the proper syntax of a form submit button?

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

5.

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

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

6.

What is the correct format for inserting an image?

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

7.

What tag is used to create an unordered list?

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

8.

What attribute is used to specify number of rows?

Rownumb
Rownum
Rowspan
rows

9.

How do you add a comment into HTML?

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

10.

What is a block level element?

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

11.

What is the correct tag for the smallest heading?

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

12.

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

13.

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

14.

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

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

15.

Should HTML be used to design and style a website?

None of the above
No
Maybe
Yes

16.

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

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

17.

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

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

18.

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

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

19.

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

Font-type
Text-type
Face
Character

20.

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

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