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.

51.

How many values can be specified in rules attribute of <table> tag?

Answer»

There are total five values that can be specified for rules attribute.

52.

Which attribute lets you control the display of select border sides of a table?

Answer»

frame attribute displays the selected border sides of the table.

53.

In the rules attribute, the………… value helps to display a table border only between rows.

Answer»

In the rules attribute, the rows value helps to display a table border only between rows.

54.

Which feature is used to call attention to the reader? (a) Highlight (b) Bold (c) Italics (d) Underline

Answer»

Correct answer is (a) Highlight

55.

A named set of certain style of character and number is: (a) Style (b) Character (c) Font (d) List

Answer»

Correct answer is (a) Style

56.

Which font is generally used for publishing work?(a) Arial(b) Times New Roman(c) Arial Black(d) Bookman Old Style

Answer»

Correct answer is (a) Arial

57.

Which font is usually used for office documents?(a) Arial(b) Times New Roman(c) Arial Black(d) Bookman Old Style

Answer»

(b) Times New Roman

58.

Unordered lists are often referred as:(a) numerical(b) alphabetical(c) bullet symbol(d) images

Answer»

(c) bullet symbol

59.

Which one of the following list type that will create a bulleted list?(a) Unordered(b) Ordered(c) Definition(d) All of these

Answer»

(a) Unordered list provides various types of bullets like the square, disc, and circle.

60.

……..value of type attribute displays a hollow circle for an unordered lists.

Answer»

Circle value of type attribute displays a hollow circle for an unordered list.

61.

To start a numbered list with regular numerals, use(a) <OL type=”A”>(b) <OL type=”r”>(c) <OL type=”r”>(d) <OL type=”u”>

Answer»

(b) Because regular numbering is the natural numbers starting from 1, 2, 3, … etc.

62.

To start a list with number 3, we should write(a) <OL start=”3″>(b) <OLtype=”3″>(c) <OL value=”3″>(d) All of these

Answer»

(a) The correct syntax for start a list with number 3 is <OL start = “3”>.

63.

Write the expansions of the following tags.1. &lt;P&gt;2. &lt;UL&gt;3. &lt;OL&gt;4. &lt;B&gt;

Answer»

1. <P>-Paragraph

2. <UL>-Unordered list

3. <0>-Ordered list

4. <B >-Bold

64.

To start a list using circles, use(a) &lt;UL type=”round”&gt;(b) &lt;OL start=”l”&gt;(c) &lt;UL =”circle”&gt;(d) &lt;UL type =”circle”&gt;

Answer»

(d) Because circular list starts with unordered list type circle.

65.

What is the purpose of using type attribute used in lists?

Answer»

The type attribute specifies the type of numbers or bullets depending on whether the list item is inside an ordered list or unordered list.

66.

How is &lt;OL&gt; tag different from &lt;UL&gt; tag?

Answer»

<OL> tag is used to indicate a list item as contained in an ordered or numbered form. <UL> tag is used to indicate a list item as contained in an unordered or bulleted form.

67.

Difference between &lt;UL&gt; and &lt;OL&gt; tags?

Answer»

Unordered list/ Unordered List(UL):

1. Unordered list is surrounded within
<UL>….</UL>tags.

2. Each element in the list is defined by <LI> tag.

Numbered List/Ordered List (OL)

1. Ordered list is created within tag pair <OL> …. <OL> tag.

2. The tag <LI> is used to present the list item in the list.

68.

&lt; caption &gt; tag gives heading to a Web page.

Answer»

False <caption> tag gives title or caption for the table.

69.

There should be only one &lt;BODY&gt; tag in each Web page.

Answer»

True A Web page contains necessarily one <HEAD> tag and one <BODY> tag.

70.

Which tag is used to specify the data in a cell?(a) &lt;tr&gt;(b) &lt;th&gt;(c) &lt;td&gt;(d) &lt;br&gt;

Answer»

Correct answer is (c) <td>

71.

In the &lt;th&gt; tag, th stands for(a) Table Heading(b) Total Heading(c) Table Header(d) All of the above

Answer»

(c) th stands lor Table Header

72.

Name the tags which are used with &lt;table&gt; tag.

Answer»

<tr>,<td>,<th> and <caption> tags are used with <table> tag.

73.

Which tag is used to insert heading of third level on a Web page?

Answer»

<H3> tag is used to insert heading of third level on a Web page.

74.

Which HTML tag is used to insert an image in a page? Write an option used with this tag.

Answer»

The <IMG> tag is used to insert an image in a page. This tag uses the options like src, alt etc.

75.

Name the attributes of &lt;table&gt; tag which are used for specifying its dimensions in a Web page.

Answer»

width and height attributes of the <table> tag are used for specifying its dimensions in a Web page, width and height are specified in terms of pixels or percentage of the browser window.

76.

The &lt;td&gt; tag is a …………………

Answer»

The <td> tag is a container.

77.

Which attribute tells, how many rows a cell should span?(a) colspan = n(b) rowspan = n(c) Both (a) and (b)(d) None of these

Answer»

(b) rowspan = n will tell how many rows a cell should span.

78.

Explain the types of list with suitable HTML code?

Answer»

(i) Numbered List / Ordered List:

Numbered list is created within the tag pair <OL> </OL> 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.
An HTML code to demonstrate

Numbered List

<html>

<head>

<title> Number List </title>

</head>

<body>

(ii) Un-numbered List / Unordered List:

Unordered lists are often referred as bulleted lists. Instead of numbers, each element in the list has prefixed with a special bullet symbol. Unordered list is surrounded within <UL>……..</UL> tags. As discussed above, each list element is defined by <LI> tag.

An HTML code to demonstrate Unordered list

<html>

<head>

<title> Unordered List </title>

</head>

<body>

<UL>

<LI> Chennai Govt. Hr. Sec,School,Rotler Street, Chennai 600112.

<LI> Karnakata Sanga Hr. Sec. School, T. Nagar,Chennai 600017. <LI> S.M.B. Jain Hr. Sec. School, T.

Nagar,Chennai 600017. <LI> Chennai G Hr. Sec. School, Nungambakkam, Chennai 600034.

<LI> Chennai G Hr. Sec. School, Saidapet West, Chennai 600015

<LI> Santhome Hr. Sec. School, Mylapore, Chennai 600004.

</UL>

</body>

</html>

(iii) Definition List:

Definition list is different from other two types of list. No bullet or number is provided for the list items. In this list type, the list element has two parts.

(a) A definition term

(b) The definition description

Definition list is surrounded within <DL> </DL> tags.

Definition term is presented in between <DT> </DT> tag and

Definition description should be surrounded within <DD> </DD> tag.

<html>

<head>

<title> Definition List </title>

</head>

<body>

<DL>

<DT> HTML: </DT>

<DD> Hyper Text Markup Language </DD>

<DT> Webpage:

<DD> A web page is a document that is suitable for the World Wide Web and web browsers. A web browser

displays a web page on a monitor or mobile device. </DD>

</DL>

</body>

</html>

79.

Write a html program to creating a table?

Answer»

<html>

<head>

<title> Creating Table </title>

</head>

<body bgcolor=”PaleGoldenRod”>

<Table border=1>

<Caption> Books and Authors </Caption>

<TR>

<TH> Book </TH>

<TH> Author </TH>

<TH> Publisher </TH>

</TR>

<TR>

<TD> Foxpro 2.5 </TD>

<TD> R.K. Taxali </TD>

<TD> BPB Publications </TD>

</TR>

<TR>

<TD> Visual Basic .NET </TD>

<TD> Jeffrey R. Shapiro </TD>

<TD> Tata McGraw Hill </TD>

</TR>

<TR>

<TD> Core Java Vol 1 </TD>

<TD> Horstmann Cornell </TD>

<TD> Pearson </TD>

</TR>

</Table>

</body>

<html>

80.

Read the following statement and choose the correct statement(s): 1. Link in HTML is used to create hyperlinks to web content. 2. IL HREF is abbreviated as Hypertext Markup File. (a) I is correct (b) II is correct (c) I and II is correct (d) Both are wrong

Answer»

(a) I is correct

81.

…………… tag is used to insert data into a table.

Answer»

<td> tag is used to insert data into a table.

82.

To insert a table on a Web page, we use ………………. tag.

Answer»

To insert a table on a Web page, we use <table> tag.

83.

Write the html code using &lt;img&gt; attributes?

Answer»

<html>

<head>

<title> Inserting Images </title>

</head>

<body>

<h1 align = center> Mahakavi Bharathi </h1>

<img src = bharathiyar.gif alt = “National Poet of India”

Width = 20% Height = 25% vpace = 20 Hspace = 20>

<img src = bharathiyar.gif alt = “National Poet of India”

Width = 20% Height = 25% vpace = 20 Hspace = 20>

<img src = bharathiyar.gif alt = “National Poet of India”

Width = 20% Height = 25% vpace = 20 Hspace = 20> <br>

<img src = bharathiyar.gif alt = “National Poet of India”

Width = 20% Height = 25% vpace = 20 Hspace = 20>

<img src = bharathiyar.gif alt = “National Poet of India”

Width = 20% Height = 25% vpace = 20 Hspace = 20>

<img src = bharathiyar.gif alt = “National Poet of India” 

Width =20% Height = 25% vpace = 20 Hspace = 20> <br>

</body>

</html>

84.

Write a html coding using table attributes?

Answer»

<html>

<head>

<title> Table with Attribute </title>

</head>

<body>

<table cellspacing=5 cellpadding=15 border=4 bordercolor=blue align=center bgcolor=yellow>

<TR>

<TH> Class </TH>

<TH> Boys </TH>

<TH> Girls </TH></TR>

<TR>

<TD> VI </TD>

<TD> 150 </TD>

<TD> 165 </TD></TR>

<TR>

<TD> VII </TD>

<TD> 146 </TD>

<TD> 151 </TD></TR>

<TR>

<TD> VIII </TD>

<TD> 107 </TD>

<TD> 110 </TD></TR>

</table>

</body>

</html>

<th> Science </th>

<td> 75 </td>

<td> 82 </td>

<td> 65</td>

<td> 96 </td>

</tr>

<tr align=center>

<th> Commerce </th>

<td> 125 </td>

<td> 147 </td>

<td> 118 </td>

<td> 163 </td></tr>

<tr align=center>

<th rowspan=2> XII </th>

<th> Science </th>

<td> 86</td>

<td> 97 </td>

<td> 71</td>

<td> 106 </td></tr>

<tr align=center>

<th> Commerce </th>

<td> 145 </td>

<td> 186 </td>

<td> 130 </td>

<td> 198 </td>

</tr>

</table>

</body>

</html>

85.

Explain the attributes used with &lt;table&gt; tag in HTML?

Answer»

Attributes of table:

The <table> is a container tag. There are several attributes to improve the layout of the table. They are listed below:

(i) Cellspacing:

It is used to set the space between cells in a table. The value should be in pixels

(ii) Cellpadding:

It is used to set the space between the contents of a cell and its border. The value should be in pixels.

(iii) Border:

Border attribute with <table> tag is used to specify the thickness of the border lines around the table. The value of the border attribute should be a non zero value in pixels. If its value is zero, HTML displays the table without border. The default value is Zero in most the browsers.

(iv) Bordercolor:

It is used to apply the colour to the border lines.

(v) Align:

It is used to set the position of the table within the browser window. Left is the default position. Right or center may be the value of align attribute.

(vi) BGcoter:

It is used to apply background colour to the table.

(vii) Height and Width:

These two attributes are used to specify the height and width of a table in terms of pixels or percentage.

86.

Can you insert hyperlinks inside table cells?

Answer»

Yes, in spite of text we just have to insert the anchor tag between the <td> and </td> tags.

e.g.

<td>

<a href = “www.google.com”>link </a></td>.

87.

What is table? Name the basic commands for creating a table.

Answer»

Tables are made up of rows and columns. In HTML, tables are used to display tabular data in Web pages. 

The basic commands for creating tables are as follows:

Table tags <table> </table>

Row tags <tr> </tr>

Cell tags <td> </td> 

<th> </th> and

Caption tags <caption> </caption>.

88.

Write HTML code to display a table with border of 5px.

Answer»

<html><body>

<table border = "5">

<tr><td>l</td></tr>

<tr><td>2</td></tr>

</table> „

</body></html >

89.

Name the attributes that are used to do the following in HTML:1. merge two or more rows.2. change the background color of the cells in a table.3. vertically align cell content.4. merge two or more columns.

Answer»

1. rowspan

2. bgcolor

3. valign

4. colspan

90.

What is header cell? Name the &lt; table &gt; tag, which is used as header cell.

Answer»

The table header cell is coded with <th> tag. It specifies the header of the table and displays the content of a table in heading style. The content in the table header cell is rendered in bold and centered horizontally within the cell.

91.

What are table sections? How can they be created?

Answer»

In HTML tables, there are three different sections: header, body and footer. These sections can be created using <thead> (header section), <tbody> (body section) and <tfoot> (footer section) tags.

e.g

<table>

<thead>

<tr> <th> Month</th><th>Savings</th></tr> </thead>

<tbody>

<tr><td>January</td><td>$100</td></tr>

<tr><td>February</td><td>$80</td></tr>

</tbody>

<tfoot>

<tr><td>Sum</td><td>$180</td></tr>

</tfoot>

</tab1e>

92.

Observe the following table and write the HTML code to generate it:ActivitiesSr SchoolMath ClubRobotics ClubPhotographyMiddle SchoolGymnasticYogaComputer ClubPrimary SchoolDanceVocal MusicSwimming

Answer»

HTML code is:

<html>

<body> <basefont face="cambria">

<table border="l" bordercolor="black" cel 1spacing="0" width="320">

<caption> Acdvities </caption>

<tr>

<td rowspan="3"> Sr School </td>

<td> Maths Club </td>

</tr>

<tr>

<td> Robotics Club </td>

</tr>

<tr>

<td> Photography </td>

</tr>

<tr>

<td rowspan="3"> Middle School </td>

<td> Gymnastic </td>

</tr>

<tr>

<td> Yoga </td>

</tr>

<tr>

<td> Computer Club </td>

</tr>

<tr>

<td rowspan="3"> Primary School </td> <td> Dance </td>

</tr>

<tr>

<td> Vocal Music </td>

</tr>

<tr>

<td> Swimming </td> </tr>

</table>

</body>

</html>

93.

Observe the following table and write the HTML code to generate it:Period 1Period 2MathScienceEnglishSSTScienceSST

Answer»

The HTML code is

<html>

<body>

<table cell padding = "10"

cell spacing="0" border="l">

<tr align = "center">

<th>Periodl</th>

<th >Period2 </th >

</tr>

<tr align = "center">

<td>Math</td>

<td>Science</td>

</tr>

<tr align="center">

<td>English</td>

<td>SST</td>

</tr>

<tr align="center">

<td> Science< /td >

<td>SST</td>

</tr>

</table>

</body>

</html>

94.

Which of the following tag identifies the document as an HTML document?(a) &lt;HTML&gt;(b) &lt;HEAD&gt;(c) &lt;BODY&gt;(d) &lt;P&gt;

Answer»

(a) tag identifies the document as an HTML document.

95.

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>

96.

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>

97.

Write the HTML code to generate the following table on a Web page with the contents and alignment exactly as shown below:MOVIDMOVNAMEACTORSM001HIT FACTORY4

Answer»

The HTML code is

<html>

<body)

<table border="l" width = "400”>

<tr align="right">

<th>MOVTD</th>

<th>MOVNAME</th>

<th>ACTORS</th>

</tr>

<tr align="1eft">

<td>M001</td>

<td>HIT FACTORY</td>

<td>4</td>

</tr></table></body>

</html>

98.

List any two types of alignment that can be applied to a paragraph in HTML.

Answer»

Any two types of alignment that can be applied to a paragraph are as follows:

Left alignment: This type of alignment aligns text in left. This is the default alignment.

Syntax

<P align=“left”> </P>

Right alignment: This type of alignment aligns text in right within the paragraph.

Syntax

<P align=“right"> </P>

99.

The default alignment for paragraph is(a) left(b) right(c) center(d) justified

Answer»

(a) The align attribute of <P> tag provides various alignments like left, right, center and justify. But by default, its alignment is left.

100.

The style element holds the document for setting(a) font, color and alignment(b) font, color, alignment and border(c) color, alignment and border(d) None of the above

Answer»

(b) Because they are used to give a better look and feel to the Web documents.