WorksheetsHTML Unit-1 Test
Total questions: 55
Worksheet time: 28mins
Which tag can insert a web page within a web page?
(a)
Which of these tags are used to create lists?
<ul>
<ol>
<dl>
<list>
Each cell of the table can be represented by using
<tr>
<td>
<th>
<table>
How do you add comments in HTML?
<!--Write your comments here-->
<comment>Write your comments here</comment>
<!--Write your comments here--!>
<!Write your comments here-->
Which of these is the official logo of HTML?
Which of these is the correct way for inserting a hyperlink?
<a href="url">link text</a>
<link href="url">link text</link>
<link href="url" text="link text" />
<a target="url">link text</a>
Which of the following is true about meta tags in HTML?
<meta> Tag specifies metadata which is always displayed on the web page.
<meta> Tag specifies character set, page description, keywords, author of the document, and viewport settings.
The <meta> tags always go inside the <body> element
None of these
Which tag defines the available options in a drop-down list element in HTML?
<select>
<option>
<input>
<opt>
Which attribute specifies the type of <input> element to display?
value attribute
type attribute
style attribute
placeholder attribute
In a form, a drop-down list of options
begins with a select tag followed by a list of option tags.
begins with an option tag followed by a list of select tags.
begins with a select tag followed by a list of datalist tags.
begins with a datalist tag followed by a let of option tags.
Which option correctly adds an email address field in a form ?
<input type="email" id="email">
<input type="text" id="email">
<label for="email">
<email type="text" id="email">
<input text="email" id="email">
A group of frames in an single browser window is called a ___________.
frame
frameset
frames
Which of the followin options is NOT true about value of frame target attribute?
_self
Loads the page into the current frame.
_blank
Loads a page into a new browser window. Opening a new window.
_top
Loads the page into the parent window, which in the case of a single frameset is the main browser window.
targetframe
Loads the page into a named targetframe.
Which of the following is FALSE about Frames concept?
The use of too many frames can not put a high workload on the server.
<frameset border="4" frameset>
<frameset cols = "200, 300, 350">
It load pages from different servers in a single frameset.
Select Correct statement(s).
To use frames on a page we use <frameset> tag instead of <body> tag. So frameset tag should be included in <head> only
Some smaller devices cannot cope with frames often because their screen is not big enough to be divided up.
<frameset> tag can be written in either <head> or <body>
All browsers support frames.
Which tag is used to load css file into html file?
<load>
<link>
<href>
<a>
What is the correct HTML for making a checkbox?
<checkbox>
<input type="checkbox">
<check>
<input type="check">
What is the correct HTML for making a drop-down list?
<list>
<input type="dropdown">
<input type="list">
<select>
What is the correct HTML for making a text area?
<input type="textbox">
<input type="textarea">
<textarea>
What is a style sheet?
A style sheet is used to build a consistent, transportable, and well-designed style template.
To create a multicolor text on a web page
It is used to define a container for navigation links
It is used to define content aside from the content
Which of the following is not an application of javascript
Client-side validation
Dynamic drop-down menus
Transport data in a network
Displaying clocks
Which of the following is not a feature of GET method in HTML?
Parameters remain in browser history because they are part of the URL
Can be bookmarked.
More difficult to hack
Easier to hack for script kiddies
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.
Which of the following is not a feature of POST method in HTML?
Can send parameters, including uploading files, to the server.
Binary data is also allowed.
POST is a little safer than GET because the parameters are not stored in browser history or in web server logs.
POST method should not be used when sending passwords or other sensitive information.
POST method variables are not displayed in the URL.
What are the attributes of form tag in HTML?
Action
Get
Post
Method
On clicking the (a) button the request will be generated and reaches a PHP file
"The input data validations are performed on the client machine’s web browsers". Identify the type of validation?
HTML Validation
PHP Validation
Client Side Validation
Server Side Validation
Required attribute is added to (a) tag
To assign a name for a fieldset, use
caption
name
legend
title
_______ defines the space between cells in a table in HTML.
Cellspacing
Cellpadding
Cellspace
Cellpad
The default bullet style is _________ whereas the default numbering style is ____________.
disk, A
disk, 1
circle, A
Circle, 1
Which of these options is correct if we want to start a list with C?
<OL START="C">
<OL TYPE="A" START="C">
<OL TYPE="A" START="3">
<OL TYPE="C" START="3">
alt attribute of <IMG> tag specifies _____
the text which appears along with the image
the text which appears if the image is not loading or cannot display
alternate text which appears when image is not available
Both b and c
Type attribute of <OL> tag can have ______ values.
3
4
5
None of the above
rowspan
can only be used in caption
can be used only in td
can be used only in td or th
be be used only in tr
Is this a correct table?
<table>
<tr><td>This is part 1</td></tr>
<tr>This is part 2</tr>
</table>
Yes
No
Attribute name specifying the number of pixels of space between a cell well and its content
The statement above refer to which tag?
width
table
cellpadding
colspan
To add background color to the whole/entire table give the bgcolor attribute in:
<tr >
<td>
<table>
<body>
Identify the correct code that displays a table with borders:
<table>
<table borders=2>
<table=2>
<table border=2>
What is the correct syntax for defining a hyperlink in HTML?
<a href=”url”> Link text </a>
<a href=”url”> Link text <a>
<a=”url”> Link text <a>
<ref=”url”> Link text <a>
Which character is used to indicate an end tag?
!
#
/
\
Which tag is used to specify a base URL for a website?
<base>
<baseurl>
<url>
<google>
<! (a) html> is given for document declaration.
Favicon stands for ______
Fave icon
Favorite icon
Both Fave icon and Favorite icon
Fav icon
Which attribute is used for favicon?
icon
title
rel
head
When you create an image map for an image element, you use
CSS to specify the map and hotspot areas
HTML to specify the map and area elements for the img element
CSS to specify the pages that the hotspots link to
the HTML for the img element to specify the the pages that the hotspots link to
Which of the following is NOT true about favicons?
A favicon is a tiny image that appears in the browser’s tab.
You can use an icon editor to create a favicon.
A favicon typically has the extension .fav.
A favicon is typically 16 pixels wide.
