Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

151.

The default direction of the <marquee> is:(a) left(b) right(c) top(d) bottom

Answer»

Correct answer is (a) left

152.

The default view of a horizontal rule line is:(a) 2D(b) 3D(c) no shade(d) normal

Answer»

Correct answer is (b) 3D

153.

What is the default size of the pixel?(a) 1(b) 2(c) 3(d) 4

Answer»

Correct answer is (c) 3

154.

What is pixel?

Answer»

A pixel is one of the tiny dots that make up the display on computer. Generally, 72 pixels equal to an inch. Pixel is usually referred as points. For example: The code <hr size = 72> display a horizontal line with 1 inch thickness. The default size is 3 pixels.

155.

How will you define numbered list?

Answer»

Numbered list is created within the tag pair <OL> ….. </QL> tag. The tag <LI> is used to present the list item in the list. Ordered list displays items in a numerical or alphabetical order. Both <OL> and <LI> tags are container tags. But the usual the practice, closing tag </LI> never be used.

156.

What are the types of list in HTML?

Answer»

HTML supports three types of lists viz., numbered, unnumbered and definition. These lists are called as Ordered List, Unordered List and Definition List respectively.

157.

What are the different forms of list used in HTML? Name any two.

Answer»

The different forms of list are ordered list and unordered list.

158.

What are two basic tags in HTML lists?

Answer»

<OL> and <UL>

159.

What is the purpose of HTML?

Answer»

HTML (HyperText Markup Language) is used to create Web pages and tells the browser how to display them. It designs the basic layout and formatting of Web pages.

HTML is made up of elements or tags and attributes, which work together to identify document parts and tell the browser how to display them.

160.

The tags used for specifying the style in HTML are(i) &lt;B&gt; (ii) &lt;I&gt; (iii) &lt;M&gt; (iv) &lt;L&gt;Choose the correct one(a) (i) and (ii)(b) (i) and (iii)(c) (ii) and (iv)(d) (i), (ii) and (iii)

Answer»

(a) Because these two tags are text formatting/styling tags.

161.

Find error(s) in the following HTML code segment. Rewrite the correct code.&lt;UL style = square&gt;&lt;LI&gt; Water Bottles&lt;LI&gt; Lunch Box&lt;LI&gt; Handkerchief&lt;/UL&gt;

Answer»

There should be type instead of style. So, correct line is <UL type =“square”>

162.

What is the output of the following segment of the HTML code?&lt;BODY&gt;&lt;HR width=‘‘50%”&gt;&lt;UL&gt;&lt;LI&gt; MANGO &lt;/LI&gt;&lt;LI&gt; APPLE &lt;/LI&gt;&lt;LI&gt; GRAPES &lt;/LI&gt;&lt;/UL&gt; &lt;/BODY&gt;

Answer»

Output

• MANGO

• APPLE

• GRAPES

163.

Explain the following with the help of an example.(a) &lt;B&gt;……..&lt;/B&gt;(b) &lt;OL type =“1”&gt;

Answer»

(a) <B> tag makes the text bold.

e.g. <B> This is a bold text </B>

Output

This is a bold text

(b) <OL> tag with attribute type of value “1” displays the lists of items with arabic numerals,

e.g.<OL type=“1”>

<LI> Mango </LI>

<LI> Apple </LI>

<LI> Banana </LI>

</OL>

Output

1. Mango 

2. Apple 

3. Banana

164.

Write a html code using OL tag?

Answer»

<html>

<head>

<title> Attribute of OL tag </title>

</head>

<body>

<0L type=i start=5>

<LI> Physics

<LI> Chemistry

<LI> Biology

<LI> Botany

<LI> Zoology

</OL>

</body>

</html>

165.

What do you mean by src?

Answer»

The src is an attribute of the <IMG> tag. It gives the URL of the image document.

166.

Write the HTML code to generate the following Web page:Note: The following points while generating the Web page:1. Link color is green, active link color is blue and visited link color is red.2. Title of the page is “Eat healthy, live healthy”.3. Heading of the page is maroon.4. Image is used in “Restaurant.jpg”5. Caption of table is blue6. Table border is blue and of size 2.7. The links are one.html, two.html, three.html and four.html.8. The E-mail id for contact us is ‘[email protected]’.

Answer»

The HTML code is

<htm!>

<head>

<title>Eat healthy, live healthy</title>

</head>

<body link="green" alink="blue" vlink="red"> <center>

<hl>

<font color="maroon">KHAO PIYO RESTAURANT</font >

</hl>

</center>

<img src=“Restaurant.jpg" a1ign ="right" height="255" width="250”>

Collect Information for .

<ul>

<li><a href=" one.html ">Menus</a></li >

<liXa href=”two.html ">Reservation</a>

</li> <liXa href =" three.html ">Catering</a></li>

<li>

<a href="four.html ”>Tours</a>

</li>

</ul>

<center>

<table border ="2" bordered or=''bl ue”> <font color="blue">

<caption> Menus available are </caption>

</font>

<tr>

<td> 1 </td> <td> INDIAN </td>

</tr>

<tr>

<td> 2 </td> <td> ITALIAN </td>

</tr>

<tr>

<td> 3 </td> <td> CONTINENTAL </td> </tr>

<tr>

<td> 4 </td> <td> THAI </td>

</tr>

< /tab1e>

</center>

<br>

For further queries and reservation

<a href=''mai 1 to:[email protected]">

Contact Us</a>

</body></html>

167.

Write the HTML code to create a paragraph whose text color is blue.

Answer»

<P>

<FONT color=“blue”>

</FONT>

</P> or

</P style = “color : blue”>

168.

Write the HTML code to create the exact table which is given below:ADMNOSNAMENAMEDOB1110MANJITRANJIT4-MAR-1998

Answer»

The HTML code is

<html>

<body>

<table border="3">

<tr align = "center" val i gn = "middle"> <th> ADMNO </th>

<th>SNAME</th>

<th>NAME</th>

<th>DOB</th>

</tr>

<tr align="left" valign="bottom">

<td>1110</td>

<td>MANJIT</td>

<td>RANJIT</td>

<td>4-MAR-1998</td>

</tr>

</table>

</body>

</html>

169.

What are the role of &lt;HTML&gt;……….&lt;/HTML&gt; tags in HTML?

Answer»

The <HTML> and </HTML> tags are used to mark the beginning and end of the HTML document. The basic purpose of this tag is to make the browser and text editor identify that the document is an HTML document. This is a container element and does not affect the appearance of the document. The <HTML> element contains only the <HEAD> and <BODY> elements, which in turn contains a number of other elements. 

The most basic structure of all possible Web documents is 

<HTML> 

……………

 ………….. 

………….. 

</HTML>

170.

Explain the tag &lt; HEAD &gt;

Answer»

<HEAD> Tag 

This element is a container for all the header elements. The <HEAD> tag must include a title for the document that can include scripts, styles, meta information and many more. The second line of your HTML document should be <HEAD>. 

The content contained in the head section of your document provides information to the browsers and search engines but, it is not displayed directly on the Web page. The end of the head tag is indicated by </HEAD>. 

e.g. 

<HTML> 

<HEAD> 

Header information comes here 

</HEAD> 

</HTML>

171.

What will happen if the background image is smaller than the browser’s window?(a) It will leave a blank space at the bottom of your page(b) It will be repeated(c) It will be stretched(d) It will not be displayed

Answer»

(b) When the background image is smaller than the browser’s window then it will be shown in boxes in the repeated pattern.

172.

What is a &lt;BASEFONT&gt; tag? Name any two attributes used with this tag.

Answer»

<BASEFONT> tag specifies a default font size, color and face for the font, the browser will use to render normal document text, i.e. the text, for which no other font setting has been provided. It occurs only for one time in the document. The attributes of this tag are size and face.

173.

GIF was developed by:(a) google(b) microsoft(c) sun(d) Compuserve

Answer»

Correct answer is (d) Compuserve

174.

The PNG format is designed as a replacement format for:(a) GIF(b) JPEG(c) SVG(d) PNQ

Answer»

Correct answer is (a) GIF

175.

Which image format was standardize by W3C? (a) JPEG (b) SVG (c) GIF (d) PNG

Answer»

Correct answer is (b) SVG

176.

Which format does not support animated sound and playback control?(a) GIF(b) JPEG(c) SVG(d) PNG

Answer»

Correct answer is (a) GIF

177.

Which format is suitable for photographic images?(a) GIF(b) JPEG(c) SVG(d) PNG

Answer»

Correct answer is (b) JPEG

178.

What is the use of &lt;font&gt; tag? Explain?

Answer»

The <font> tag is used to change the style, size and color of text. It is also a container tag. It is generally used for changing the appearance of a short segment of text. Before using <font>, you should have the knowledge about fonts.

A font is a named set of certain style of character and number. Each font looks different from other fonts. Generally some fonts are used for specific purpose. 

For example, Times New Roman is a style of font usually used for preparing office documents.

Arial is another font style which is used for publishing work. Variety of fonts available in internet at free of cost. Generally, a browser shows the contents as default system font setting. Every system has different font setting with another system.

The general form of <font> tag with attributes:

<font face= “font_name”

size=value col.or=color_ name / color_code>

Text to be displayed </font>

179.

Which tag is used as thematic breaks?(a) &lt;font&gt;(b) &lt;br&gt;(c) &lt;hr&gt;(d) &lt;p&gt;

Answer»

Correct answer is (c) <hr>

180.

Write about any two attributes of font tag?

Answer»

1. The face is an attribute to set different font style. The name of a font has multiple words it should be specified within double quote.

2. The size attribute is used to set size of the text. The size can have an absolute value from 1 to 7. These predefined sizes are known as virtual size. Each virtual size is successively 20% larger than the previous one.

181.

To display the text in italics, ………. tag is used and to display in type writer font, ……… tag is used.

Answer»

To display the text in italics,<I> tag is used and to display in typewriter font, <TT> tag is used.

182.

&lt;LI&gt; tag is an ………… element tag.

Answer»

<LI> tag is an empty element tag.

183.

…….. and ……… tags break the line flow.

Answer»

<BR> and <HR> tags break the line flow.

184.

………… attribute of &lt;HR&gt; tag specifies the width of a horizontal line.

Answer»

width attribute of <HR> tag specifies the width of a horizontal line.

185.

……… tag is used to make the text bold.

Answer»

<B> tag is used to make the text bold.

186.

Explain the forms attribute submit and name?

Answer»

The form has a special element, which is submit button, which will submit the entries of a form to a server application to process the entries. Each element in the form is assigned a name using the name attribute.

Users enter values into the text boxes, or make selections from the radio buttons* check boxes, and drop down lists. The values they enter or select are passed with the name of the corresponding form element to the Web server.

187.

How will you scroll the text in HTML?

Answer»

In HTML, a piece of text or image can be moved horizontally or vertically by using <marquee> tag. This feature makes a web page as more attractive.

General format:

<marquee> Text or image to be scroll </marquee>
Attributes of <marquee>

Height and Width:

These attributes are used to set height and width of the marquee. The values should be either in pixels or in percentage of browser window.

Direction:

This is used to specify the direction of the movement of text or image. The text or image will move towards right to left by default. So, the default direction is left. The Possible values are ‘up’, ‘down’, ‘left’ or ‘right’.

Behaviour:

This attribute is used to specify the type of scrolling. The values are ‘scroll’, ‘slide’ and ‘alternate’.

Scrolldelay:

This attribute is used to define the time delay between each jump. The time unit should be in seconds.

Scrollamount:

This is used to define the speed of the scroll.

Loop:

This is for defining how many times the marquee element should repeat on the screen. The default value is ‘infinite’, which me the marquee element scrolls endlessly.

Bgcolor:

This is used to specify the background color to the marquee elements.

Hspace and Vspace:

This is for defining the horizontal and vertical space around the marquee. The value can be in pixels or percentage.

188.

What is the method will append the names of the form elements and their values?(a) Form(b) Get(c) Post(d) Action

Answer»

Correct answer is (b) Get

189.

What is the special element of the form in html?(a) Name(b) Submit(c) Text(d) Box

Answer»

Correct answer is (b) Submit

190.

Which is referred to audio or video files are handled as part of the page?(a) inline(b) embed(c) src(d) img

Answer»

Correct answer is (a) inline

191.

What is the primary attribute used with &lt;embed&gt; tag?(a) inline(b) embed(c) src(d) no embed

Answer»

Correct answer is (b) no embed

192.

What is inline sound or movie?

Answer»

The inline refers to audio or video files are handled as part of the page. These media files play the audio or video when the page is visible in the browser window. The external refers, linking external audio or video files as url.

193.

Which tag is used to receive multiline text data as input?(a) &lt;form&gt;(b) &lt;submit&gt;(c) &lt;textarea&gt;(d) &lt;inline&gt;

Answer»

Correct answer is (c) <textarea>

194.

What are the major attributes are available in &lt;textarea&gt; tag?

Answer»

The <Textarea> tag used to receive multi line text data as input. It is a container tag. The main attributes of <Textarea> are –

Name:

Used to define name to the control.

Rows:

Specifies the number of rows in the text area control.

Cols:

Specifies the number of columns in the text area, (number of characters in a line).

195.

Inline sound can be inserted using which of the following tag?(a) &lt;inline&gt;(b) &lt;backgroundsound&gt;(c) &lt;bgsound&gt;(d) &lt;sound&gt;

Answer»

(c) <bgsound>

196.

What is the use of &lt;embed&gt; tag and &lt;no embed&gt; tag?

Answer»

The <embed> tag is used to attach an audio or video file easily within webpage. This tag includes the controls of the multimedia automatically in the browser. The <noembed> tag may be used as an alternate to display some other media file, in the case of the browser does not support <embed> tag.

197.

List out the popular image formats?

Answer»

Most of the browsers supports, GIF, JPEG and PNG images formats. HTML – 5 introduces SVG images. One format of image can be converted to another format by using Image editing applications such as Photoshop, Picasa, GIMP etc…

198.

Match the following :(A) &lt;textarea&gt;(i) inline(B) &lt;input&gt;(ii) Video(C) &lt;bgsound&gt;(iii) Multiline input(D) &lt;embed&gt;(iv) Password (A)(B)(C)(D)(a)(iii)(i)(iv)(ii)(b)(iii)(iv)(i)(ii)(c)(ii)(iii)(iv)(i)(d)(ii)(i)(iii)(iv)

Answer»

(b) (iii) (iv) (i) (ii)

199.

What is the &lt;OL&gt;……..&lt;/OL&gt; tag? Name any two attributes used with this tag.

Answer»

<OL>………</OL> tag is used for the ordered list, i.e. a list of items to be displayed in a particular order. An ordered list is also a list of items. An ordered list starts with the <OL> tag. Each list item starts with the <LI> tag.

e.g.

<OL>

<LI> A </LI>

<LI> B </LI>

</OL>

Two attributes of <OL> tag are: start and type.

200.

What is definition list?

Answer»

Definition List

This is a list of items, with a description of each item. HTML definition lists (<DL>) are an indented list without any bullet symbol or any number in front of each item.

These list elements have a unique array of tags and elements; the resulting lists are similar to those you would see in a dictionary.

Tags used in definition lists are as follows:

• <DL> Opening tag that defines the start of the list.

• <DT> List item that defines the definition term.

• <DD> Definition of the list item.

• </DL> Closing tag that defines the end of the list.