Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Unit-1 Test

Total questions: 55

Worksheet time: 28mins

Name
Class
Date
1.

Which tag can insert a web page within a web page?

(a)  

2.

Which of these tags are used to create lists?

a)

<ul>

b)

<ol>

c)

<dl>

d)

<list>

3.

Each cell of the table can be represented by using

a)

<tr>

b)

<td>

c)

<th>

d)

<table>

4.

How do you add comments in HTML?

a)

<!--Write your comments here-->

b)

<comment>Write your comments here</comment>

c)

<!--Write your comments here--!>

d)

<!Write your comments here-->

5.

Which of these is the official logo of HTML?

a)
b)
c)
d)
6.

Which of these is the correct way for inserting a hyperlink?

a)

<a href="url">link text</a>

b)

<link href="url">link text</link>

c)

<link href="url" text="link text" />

d)

<a target="url">link text</a>

7.

Which of the following is true about meta tags in HTML?

a)

<meta> Tag specifies metadata which is always displayed on the web page.

b)

<meta> Tag specifies character set, page description, keywords, author of the document, and viewport settings.

c)

The <meta> tags always go inside the <body> element

d)

None of these

8.

Which tag defines the available options in a drop-down list element in HTML?

a)

<select>

b)

<option>

c)

<input>

d)

<opt>

9.

Which attribute specifies the type of <input> element to display?

a)

value attribute

b)

type attribute

c)

style attribute

d)

placeholder attribute

10.

In a form, a drop-down list of options

a)

begins with a select tag followed by a list of option tags.

b)

begins with an option tag followed by a list of select tags.

c)

begins with a select tag followed by a list of datalist tags.

d)

begins with a datalist tag followed by a let of option tags.

11.

Which option correctly adds an email address field in a form ?

a)

<input type="email" id="email">

b)

<input type="text" id="email">

c)

<label for="email">

<email type="text" id="email">

d)

<input text="email" id="email">

12.
Style tags are used to;
a)
Apply style to one line
b)
Not used in HTML
c)
Used at the top of the page to apply a style to the entire document
d)
Used sparingly
13.

A group of frames in an single browser window is called a ___________.

a)

frame

b)

frameset

c)

frames

14.

Which of the followin options is NOT true about value of frame target attribute?

a)

_self

Loads the page into the current frame.

b)

_blank

Loads a page into a new browser window. Opening a new window.

c)

_top

Loads the page into the parent window, which in the case of a single frameset is the main browser window.

d)

targetframe

Loads the page into a named targetframe.

15.

Which of the following is FALSE about Frames concept?

a)

The use of too many frames can not put a high workload on the server.

b)

<frameset border="4" frameset>

c)

<frameset cols = "200, 300, 350">

d)

It load pages from different servers in a single frameset.

16.

Select Correct statement(s).

a)

To use frames on a page we use <frameset> tag instead of <body> tag. So frameset tag should be included in <head> only

b)

Some smaller devices cannot cope with frames often because their screen is not big enough to be divided up.

c)

<frameset> tag can be written in either <head> or <body>

d)

All browsers support frames.

17.

Which tag is used to load css file into html file?

a)

<load>

b)

<link>

c)

<href>

d)

<a>

18.

What is the correct HTML for making a checkbox?

a)

<checkbox>

b)

<input type="checkbox">

c)

<check>

d)

<input type="check">

19.

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

a)

<list>

b)

<input type="dropdown">

c)

<input type="list">

d)

<select>

20.

What is the correct HTML for making a text area?

a)

<input type="textbox">

b)

<input type="textarea">

c)

<textarea>

21.

What is a style sheet?

a)

A style sheet is used to build a consistent, transportable, and well-designed style template.

b)

To create a multicolor text on a web page

c)

It is used to define a container for navigation links

d)

It is used to define content aside from the content

22.

Which of the following is not an application of javascript

a)

Client-side validation

b)

Dynamic drop-down menus

c)

Transport data in a network

d)

Displaying clocks

23.

Which of the following is not a feature of GET method in HTML?

a)

Parameters remain in browser history because they are part of the URL

b)

Can be bookmarked.

c)

More difficult to hack

d)

Easier to hack for script kiddies

e)

GET is less secure compared to POST because data sent is part of the URL. So it's saved in browser history and server logs in plaintext.

24.

Which of the following is not a feature of POST method in HTML?

a)

Can send parameters, including uploading files, to the server.

b)

Binary data is also allowed.

c)

POST is a little safer than GET because the parameters are not stored in browser history or in web server logs.

d)

POST method should not be used when sending passwords or other sensitive information.

e)

POST method variables are not displayed in the URL.

25.
Which of the attribute of form is used to specify where to send the form data when the form is submitted?
a)
Method
b)
Attribute
c)
submit            
d)
input
26.
Which of the values are used by method attribute?
a)
GET and POST
b)
GET and SET
c)
GET and PUT
d)
SET and POST
27.
Which method sends the data as a block through the HTTP transaction?
a)
GET
b)
SET
c)
SET
d)
POST
28.
Stands for “WYSIWYG” ?
a)
What You See Is When You Get
b)
When You See Is When You Get
c)
What You See Is What You Get
d)
When You See Is What You Get
29.

What are the attributes of form tag in HTML?

a)

Action

b)

Get

c)

Post

d)

Method

30.

On clicking the (a)   button the request will be generated and reaches a PHP file

31.

"The input data validations are performed on the client machine’s web browsers". Identify the type of validation?

a)

HTML Validation

b)

PHP Validation

c)

Client Side Validation

d)

Server Side Validation

32.

Required attribute is added to (a)   tag

33.
Which of the following tags is used to create a heading within an HTML table?
a)
<h1>
b)
<head>
c)
<th>
d)
<h2>
34.

To assign a name for a fieldset, use

a)

caption

b)

name

c)

legend

d)

title

35.

_______ defines the space between cells in a table in HTML.

a)

Cellspacing

b)

Cellpadding

c)

Cellspace

d)

Cellpad

36.

The default bullet style is _________ whereas the default numbering style is ____________.

a)

disk, A

b)

disk, 1

c)

circle, A

d)

Circle, 1

37.

Which of these options is correct if we want to start a list with C?

a)

<OL START="C">

b)

<OL TYPE="A" START="C">

c)

<OL TYPE="A" START="3">

d)

<OL TYPE="C" START="3">

38.

alt attribute of <IMG> tag specifies _____

a)

the text which appears along with the image

b)

the text which appears if the image is not loading or cannot display

c)

alternate text which appears when image is not available

d)

Both b and c

39.

Type attribute of <OL> tag can have ______ values.

a)

3

b)

4

c)

5

d)

None of the above

40.

rowspan

a)

can only be used in caption

b)

can be used only in td

c)

can be used only in td or th

d)

be be used only in tr

41.

Is this a correct table?


<table>

<tr><td>This is part 1</td></tr>

<tr>This is part 2</tr>

</table>

a)

Yes

b)

No

42.

Attribute name specifying the number of pixels of space between a cell well and its content


The statement above refer to which tag?

a)

width

b)

table

c)

cellpadding

d)

colspan

43.

To add background color to the whole/entire table give the bgcolor attribute in:

a)

<tr >

b)

<td>

c)

<table>

d)

<body>

44.

Identify the correct code that displays a table with borders:

a)

<table>

b)

<table borders=2>

c)

<table=2>

d)

<table border=2>

45.
What is the correct syntax for inserting an image?
a)
<image source="untitled.jpg"/>
b)
<img src="untitled.jpg"/>
c)
<src img="untitled.jpg"/>
d)
<img scr="untitled.jpg"/>
46.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
47.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
48.

What is the correct syntax for defining a hyperlink in HTML?

a)

<a href=”url”> Link text </a>

b)

<a href=”url”> Link text <a>

c)

<a=”url”> Link text <a>

d)

<ref=”url”> Link text <a>

49.

Which character is used to indicate an end tag?

a)

!

b)

#

c)

/

d)

\

50.

Which tag is used to specify a base URL for a website?

a)

<base>

b)

<baseurl>

c)

<url>

d)

<google>

51.

<! (a)   html> is given for document declaration.

52.

Favicon stands for ______

a)

Fave icon

b)

Favorite icon

c)

Both Fave icon and Favorite icon

d)

Fav icon

53.

Which attribute is used for favicon?

a)

icon

b)

title

c)

rel

d)

head

54.

When you create an image map for an image element, you use

a)

CSS to specify the map and hotspot areas

b)

HTML to specify the map and area elements for the img element

c)

CSS to specify the pages that the hotspots link to

d)

the HTML for the img element to specify the the pages that the hotspots link to

55.

Which of the following is NOT true about favicons?

a)

A favicon is a tiny image that appears in the browser’s tab.

b)

You can use an icon editor to create a favicon.

c)

A favicon typically has the extension .fav.

d)

A favicon is typically 16 pixels wide.