InterviewSolution
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.
| 101. |
If you want to display uppercase alphabets instead of numbers, ………… ordered type should you use. |
|
Answer» If you want to display uppercase alphabets instead of numbers, A ordered type should you use. |
|
| 102. |
List any two attributes of <HR> tag. |
|
Answer» <HR> tag is used to draw horizontal lines in the Web page. This horizontal line divides the screen horizontally. <HR> tag creates a shaded horizontal line between text. Attributes of <HR> tag are size, align and width. |
|
| 103. |
Cellspacing is used to create space between different…………… in a table. |
|
Answer» Cellspacing is used to create space between different cells in a table. |
|
| 104. |
There are total………… values for rules attribute in <table> tag. |
|
Answer» There are total 5 values for rules attribute in <table> tag. |
|
| 105. |
In the <td> tag, td stands for(a) Table Data(b) Table Time and Date(c) Table Date(d) None of these |
|
Answer» (a) td stands for Table Data. |
|
| 106. |
Which of the following is not an attribute of < table > tag?(a) border(b) background(c) bgcolor(d) src |
|
Answer» (d) src is not an attribute of <table> tag. |
|
| 107. |
Which attribute of the < table > tag is used to set an image in the background of a table?(a) bgcolor(b) background(c) frame(d) rules |
|
Answer» (b) background attribute is used to set an image in the background of a table. |
|
| 108. |
The default value of border attribute is 1. |
|
Answer» False The default value of border attribute is 0. |
|
| 109. |
The border is an attribute of <a> tag. |
|
Answer» False The border is an attribute of <table> tag. |
|
| 110. |
The attribute used to set the border color of a table is(a) border(b) bordercolor(c) color(d) border color |
|
Answer» (b) bordercolor is used to set the border color of a table. |
|
| 111. |
Why bordercolor attribute is used? |
|
Answer» The bordercolor attribute is used to specify the color of the table’s border |
|
| 112. |
In order to add border to a table, border attribute is specified in which tag?(a) <th>(b) <table>(c) <td>(d) <tr> |
|
Answer» (b) border attribute is specified in <table> tag. |
|
| 113. |
The…....attribute is used to provide information about a table. |
|
Answer» The summary attribute is used to provide information about a table. |
|
| 114. |
The attribute used to specify the background color of a table is(a) color(b) bgtable(c) backcolor(d) bgcolor |
|
Answer» (d) bgcolor is used to specify the background color of a table. |
|
| 115. |
Which of the following is the correct code of HTML page?(a) <HTML><TITLE> Hello</TITLE></HTML>(b) <HTML><HEAD><TITLE> Hello</TITLE></HEAD></HTML>(c) <HTML><BODY> Hello</HTML>(d) <HTML><HEAD> Hello<BODY></HTML> |
|
Answer» (b) Because <TITLE> tag must close inside the <HEAD> tag. |
|
| 116. |
Carefully study the Web page given below. Identify 10 tags (structural as well as formatting tags) that have been utilized in creating this Web page and write the usage of each of them. |
|
Answer» 1. <title> to specify title of the Web page. 2. <body> contains all the text content that is to be displayed on Web page and all the various formatting and structural tag. 3. <hl> defines the most important and biggest heading. 4. <hr> used to separate content (or define a change). 5. <img> used to insert an image. 6. <b> used to bold the text. 7. <table> used to create a table. 8. <caption> used to provide caption to the table. 9. <tr> used to create a table row. 10. <td> used to define data cells. |
|
| 117. |
Carefully study the Web page given below. Identify 10 tags (structural as well as formatting tags) that have been utilized in creating this Web page and write the usage of each of them. |
|
Answer» 1. <title> to specify the title of the Web page. 2. <body> contains all the content that is to be displayed on the Web page and all the various formatting and structural tag. 3. <ul> used to create an unordered list. 4. <li> to specify the various list items in a list. 5. <caption> to provide caption to the table. 6. <table> used to create table in HTML document. 7. <tr> stands for table row, used to create a table row. 8. <td> stands for table data, helps to create cells in HTML table. 9. <img> used to insert an image in HTML document. 10. <a> stands for anchor tag. Use the href attribute to provide the reference of the Web page that you want to hyperlink. |
|
| 118. |
Tags and text that do not display directly on the page afe placed in(a) body(b) table(c) head(d) title |
|
Answer» (c) Information in <HEAD> tag is not displayed directly in the Web page. It is used to identify the matter (tags) used in a Web page. |
|
| 119. |
A cell is an intersection of a row and a column. |
|
Answer» True A cell is an intersection of a row and a column. |
|
| 120. |
Which tags divide HTML tables in multiple section? |
|
Answer» <thead>, <tfoot> and <tbody> |
|
| 121. |
What is the difference between <thead> and <tfoot> tags? |
|
Answer» The <thead> tag is used to add a header in a table while <tfoot> tag is used to add a footer in a table. |
|
| 122. |
Why valign attribute is used? |
|
Answer» The valign attribute is used with a <td> tag which helps to align data in a single cell if the cell span in more than one row. |
|
| 123. |
HTML tags are(a) in uppercase(b) case sensitive(c) in lowercase(d) not case sensitive |
|
Answer» (d) HTML tags are not case sensitive means we can write tags either in uppercase or lowercase. |
|
| 124. |
Which type of tags used by HTML?(a) tags only for image(b) user defined tags(c) tags only for linking(d) fixed tags defined by the language |
|
Answer» (d) HTML provides predefined and fixed tags. |
|
| 125. |
What do you understand by option vlink used with <BODY> tag? |
|
Answer» vlink attribute defines the color of a link after it has been visited. The default color of vlink attribute is purple. |
|
| 126. |
How do you give a comment in HTML? |
|
Answer» Comments are inserted in HTML code with the help of <!—….—> tag. To insert the text as a comment, type the text between <!– and —> tag, then that text will be ignored by the browser and invisible for the user. e.g. <HTML><BODY> <!--This is a comment.--> This is a book </BODY><HTML> |
|
| 127. |
How can anyone insert horizontal line in a Webpage? |
|
Answer» Using <HR> tag, anyone can insert horizontal line in a Web page. |
|
| 128. |
In a Web page, you can place(a) 2 levels of headings(b) 6 levels of headings(c) 4 levels of headings(d) 7 levels of headings |
|
Answer» (b) Web page provides six levels of headings. |
|
| 129. |
What is the purpose of center tag? |
|
Answer» Paragraphs can be centered with Align attribute with <p> tag. But for non-paragraph text contents can be centered with <center> tag. The <center> tag is used to centralize a segment of text. It is a container tag. That means, what you type between <center> and </cenfer> will be displayed in the center of the browser. |
|
| 130. |
Explain subscript and superscript? |
|
Answer» Subscript: A Subscript is a way to display a character or a number below the normal line of type. For example: The scientific notation for water is H2O. It should be written as H2O. Superscript: A Superscript is also a way to show a character or a number above the normal line of type. For example: The familiar algebra equation “a plus b the whole square” should be written as (a+b)2. Here, the square value 2 is appearing above the normal line. This is called superscript. Usually, the subscript and the superscript character or number is smaller than the rest of the text. In HTML, the <sub> and <sup> tags are used to create subscript and superscripts respectively. As like as other formatting tags, this is also a container tag. |
|
| 131. |
What is the highlight-and a container tag?(a) <strong>(b) <em>(c) <small>(d) <mark> |
|
Answer» Correct answer is (d) <mark> |
|
| 132. |
Write an HTML code to print the following table:Note: 1 Background color of a table is pink. 2 Caption of a table is in red color. |
|
Answer» <caption> <b> <font size="4'' color="red"> Student Data </font> </b> </caption> <tr > <th>Student Name</th> <th>Roli No</th> <th>Address</th> <th>Marks</th> </tr> <tr> <td>Amrita</td> <td>l</td> <td>Shastri Nagar</td> <td>483</td> </tr> <tr> <td>Taruna </td> <td>2</td> <td>T.P Nagar</td> <td>4l8</td> </tr> <tr> <td>Priyanka</td> <td>3</td> <td>Saket</td> <td>489</td> </tr> </table> </body> </html> |
|
| 133. |
Write the HTML code to generate the following output: |
|
Answer» The HTML code is <html> <head> <title>Table</title> </head> <body> <table border="4" cell spacing=''7” cell spacing="5"> <tr> <td>A</td> <td rowspan="2">B</td> <td>D</td> <td>E</td> </tr> <tr> <td>G</td> <td col span="2">H</td> <td>I</td> </tr> </table> </body> </html> |
|
| 134. |
Write a html code using sub and sup for H2O and (a + b)2 = a2 + 2ab + b2? |
|
Answer» <html> <head> <title> Subscript and Superscript </title> </head> <body> The scientific notation of Water is H<sub>2</sub> 0 <br> (a+b)<sup>2</sup>=a<sup>2</sup>+2ab+b<sup>2</sup> </body> </html> |
|
| 135. |
What are the different types of form controls? |
|
Answer» In HTML, there are different types of form controls are used to collect data. They are Text box, Password, Checkbox, Radio buttons, Text area, Select box, Submit and Reset Button. |
|
| 136. |
Define the <big> and <small> tags? |
|
Answer» 1. The <big> tag is used to define the text bigger in size than the normal size. It is often used to call attention a text. 2. The <small> tag is used to define the text smaller than the current size. 3. These two tags are container tags. |
|
| 137. |
What is the similar tag of <i>?(a) <strong>(b) <em>(c) <small>(d) <big> |
|
Answer» Correct answer is (b) <em> |
|
| 138. |
Which is one of the following tag is a phrase tag?(a) <strong>(b) <em>(c) <small>(d) <big> |
|
Answer» Correct answer is (a) <strong> |
|
| 139. |
What is the similar tag of <b>?(a) <strong>(b) <em>(c) <small>(d) <big> |
|
Answer» Correct answer is (a) <strong> |
|
| 140. |
Define the <dei> and <ins> tags? |
|
Answer» The text what you see on browser cannot delete or insert. But you can show a text as deleted or inserted. <del> and <ins> tags are used to markup a segment of text as deleted or inserted respectively. These two tags are container tags. The text what you specify between <del> and </del> will be displayed as strike through. The ‘text you specify between <ins> and </ins> will be shown as underlined. |
|
| 141. |
Which tag is used emphasized text?(a) <strong>(b) <em>(c) <small>(d) <big> |
|
Answer» Correct answer is (b) <em> |
|
| 142. |
Define strike through as wrong text? |
|
Answer» To display a text as wrong text, the <s> tag can be used to show the text as strike through style. The <s> and <del> tags are display the text in similar way. This is also a container tag. The text you specify between <s> and </s> will be display in strike through style. |
|
| 143. |
What is the use of <form> tag? |
|
Answer» The <form> tag is used to create a form. An HTML from starts with <form> and ends with </form> tag. Forms contain many types of form elements, such as text boxes, radio buttons, check boxes, buttons and drop-down lists. |
|
| 144. |
Write a short note on<strong><em>. <strong> Important text: |
|
Answer» The <strong> tag is a phrase tag. It is used to define important text. This tag displays the text as bold. <em> – Emphasized text: The <em> tag is used to emphasize the text. That means, when you use this tag, the text will be in italics. |
|
| 145. |
Which tag is used to replaced or deleted text?(a) <strong>(b) <em>(c) <ins>(d) <del> |
|
Answer» Correct answer is (d) <del> |
|
| 146. |
What is the use of <mark> tag? |
|
Answer» The <mark> tag is used to highlight the text in HTML. This is also a container tag. Whatever the text given between <mark> and </mark> will be displayed as highlighting with default color (mostly yellow). |
|
| 147. |
Which tag can be used to show the text as strike through style?(a) <s>…. </s>(b) <b>…. </b>(c) <del>…. </del>(d) <ins>…. </ins> |
|
Answer» Correct answer is (a) <s>…. </s> |
|
| 148. |
What is the default colour displayed using <mark>tag?(a) Red(b) Black(c) Yellow(d) Green |
|
Answer» Correct answer is (c) Yellow |
|
| 149. |
The grid of rows and columns are:(a) row(b) column(c) table(d) cell |
|
Answer» Correct answer is (c) table |
|
| 150. |
What is the default colour by horizontal line?(a) Blue(b) Yellow(c) Gray(d) Black |
|
Answer» Correct answer is (c) Gray |
|