HTML Tags MCQ Questions and Answers
HTML Tags MCQs : This section focuses on "Tags" in Html. These Multiple Choice Questions (MCQs) should be practiced to improve the Html skills required for various interviews (campus interview, walk-in interview, company interview), placement, entrance exam and other competitive examinations.
1. The _______ tag offers a way to structure your text into different paragraphs.
A. h
B. p
C. p2
D. h5
View Answer
Ans : B
Explanation: The p tag offers a way to structure your text into different paragraphs.
2. You can use ___________ tag to put any content in the center of the page or any table cell.
A. title
B. head
C. center
D. meta
View Answer
Ans : C
Explanation: You can use center tag to put any content in the center of the page or any table cell.
3. Horizontal lines are used to visually break-up sections of a document.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, Horizontal lines are used to visually break-up sections of a document.
4. _______ tag is an example of the empty element.
A. img
B. div
C. p
D. hr
View Answer
Ans : D
Explanation: hr tag is an example of the empty element, where you do not need opening and closing tags, as there is nothing to go in between them.
5. Which of the following HTML tag is used to create an unordered list?
A. ol
B. ul
C. sl
D. pl
View Answer
Ans : B
Explanation: ul tag is used to create the unordered list items in an HTML document. By default, unordered list items will display in a bulleted format.
6. Which of the following HTML tag is used to add a row in a table?
A. th
B. td
C. ts
D. tr
View Answer
Ans : D
Explanation: In HTML, tr tag is used to create a row in the table.
tag is used to set the header cell of a table.
7. Metadata does not define _________
A. character set
B. links
C. scripts
D. color
View Answer
Ans : D Explanation: Metadata define character set, title of the document, links, styles, scripts and other meta information.
8. Which element defines preformatted text?
A. p
B. pre
C. hr
D. ins
View Answer
Ans : A Explanation: p defines paragraph/text.
9. Relative URLs are used to ____________
A. link other pages within the same site
B. link the same page with other sites
C. link other pages with other sites
D. does not link
View Answer
Ans : A Explanation: Relative URLs are used for linking other pages within the same site. These are the shorthand version of absolute URLs. It does not need a domain name. These URLs are helpful when building a site on a computer because we can create links between pages without having set up for hosting or domain name.
10. HTML also has six levels of headings.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A Explanation: True, HTML also has six levels of headings.
Discussion
|