HTML Multiple Choice Questions - Fundamentals-3

1. Which of the following is the correct way to send mail in HTML?
a) <a href = "mailto: xy@y">
b) <a href = "xy@y">
c) <mail xy@y</mail>
d) None of the above

Answer: a
Explanation: We can use the <a> (anchor tag) tag, and the href attribute to mail a person.

2. What are the types of unordered or bulleted list in HTML?
a) disc, square, triangle
b) polygon, triangle, circle
c) disc, circle, square
d) All of the above

Answer: c
Explanation: The unordered or bulleted list in HTML is used to display the elements in a bulleted format. Mainly, there are three types of an unordered list: disc, circle, and square.

3. By using which of the following options, the border of table can be collapsed?
a) border-collapse:collapse
b) table-border:collapse
c) border:collapse
d) table-border-collapse:collapse

Answer: a
Explanation: In order to collapse the border of a table, border-collapse: collapse; can be used inside <style> tag.

4. Choose the correct option.
a) HTML elements are represented within tags
b) HTML tags are case insensitive
c) While executing an HTML document, browser do not display the tags
d) All of the above

Answer: d
Explanation: All the above three statements are correct with respect to HTML tags

5. Which of the following tag is used to create a combo box (or drop-down box)?
a) <list>
b) <select>
c) <input type = "dropdown">
d) <ul>

Answer: b
Explanation: HTML <select> tag is used to create a drop down list with multiple options. The <option> element is nested within the <select> tag to define options in a list.

6. What is the new format to display vector images?
a) SVG
b) GIF
c) JPG
d) PNG

Answer: a
Explanation: SVG stands for Scalable Vector Graphics. It is the new format that is used to display vector images directly, there is no need to create bitmap versions of the images. But it is not yet that much widespread. A GIF is a graphics interchange format. Both JPG and PNG are file format out of which one is lossy compressed while other is lossless compressed one.

7. What does R, G and B in RGB value of HTML color mean?
a) Red, Green, Blue
b) Red, Grey, Black
c) Red, Grey, Blue
d) Red, Green, Black

Answer: a
Explanation: RGB means the three basic colors Red, Blue, Green

8. Which color do RGB (255,255,255) represent?
a) White
b) Black
c) Red
d) Blue

Answer: a
Explanation: When all the three values are 255, it gives White color.

9. The <hr> tag in HTML is used for -
a) new line
b) vertical ruler
c) new paragraph
d) horizontal ruler

Answer: d
Explanation: The <hr> tag is used to specify a paragraph-level thematic break in HTML document. It is called a horizontal rule and draws a horizontal line.

10. Which element is used for short quote?
a) <q>
b) <blockquote>
c) <em>
d) <abbr>

Answer: a
Explanation: <em> element indicates emphasis, browser will show the contents of <em> element in italic. A section which is quoted from another source is specified by <blockquote>. The <abbr> defines abbreviation. We used <q> element for shorter quote. Browser put quote around <q> element.
Example: <p>This is a <q>brown dog</q>.</p>
Output: This is a “brown dog”.