HTML Multiple choice questions (MCQ's)1) HTML stands for -
Answer: (c) HyperText Markup Language Explanation: HTML is an acronym that stands for HyperText Markup Language, which is used for creating web pages and web applications. HyperText simply means "Text within Text." A text has a link within it, is a hypertext. A markup language is a computer language that is used to apply layout and formatting conventions to a text document. 2) The correct sequence of HTML tags for starting a webpage is -
Answer: (d) HTML, Head, Title, Body Explanation: The correct sequence of HTML tags to start a webpage is html, head, title, and body. 3) Which of the following element is responsible for making the text bold in HTML? Answer: (c) Explanation: The (bold tag) tag in HTML is used to display the written text in bold format. 4) Which of the following tag is used for inserting the largest heading in HTML? Answer: (b) Explanation: The tag is used to insert the main heading or the highest level heading.5) Which of the following tag is used to insert a line-break in HTML? Answer: (a) Explanation: The 6) How to create an unordered list (a list with the list items in bullets) in HTML? Answer: (a) Explanation: The
7) Which character is used to represent the closing of a tag in HTML?
Answer: (c) / Explanation: The forward-slash (/) character is used to indicate the closing of a tag in HTML. 8) How to create a hyperlink in HTML? Answer: (a) tutorialsinfo.com Explanation: The anchor tag and the href attribute is used to create the link in HTML. 9) How to create an ordered list (a list with the list items in numbers) in HTML? Answer: (b) Explanation: The
10) Which of the following element is responsible for making the text italic in HTML? Answer: (a) Explanation: The (italic tag) tag in HTML is used to display the written text in italic format. 11) How to insert an image in HTML? Answer: (d) Explanation: The img tag and the src attribute is used to display an image on the webpage. 12) How to add a background color in HTML? Answer: (c) Explanation: The bgcolor attribute is used to set the background color of an HTML element. 13) is -
Answer: (b) an empty tag Explanation: The tag in HTML is used to represent a form input control in HTML document. 14) Which of the following tag is used to make the underlined text? Answer: (c) Explanation: The (underline tag) tag in HTML is used to display the underlined text. It rendered as a solid underlined text, but it can be changed using CSS properties. 15) How to create a checkbox in HTML? Answer: (a) Explanation: To create a checkbox in HTML, we have to use the tag and give the value checkbox to its type attribute. 16) Which of the following tag is used to define options in a drop-down selection list? Answer: (d) Explanation: The 17) HTML tags are enclosed in-
Answer: (d) < and > Explanation: All HTML tags must be enclosed within angular < > brackets. 18) Which of the following tag is used to add rows in the table?
Answer: (c) Explanation: The head cells and | data cells to define a single row of HTML table. | 19) The tag in HTML is used for -
Answer: (d) horizontal ruler Explanation: The tag is used to specify a paragraph-level thematic break in HTML document. It is called a horizontal rule and draws a horizontal line. 20) Which of the following attribute is used to provide a unique name to an element?
Answer: (b) id Explanation: The id attribute is used to specify a unique id for an element of the HTML document. It allocates the unique identifier which can be used by the JavaScript and CSS to perform certain tasks. 21) Which of the following HTML tag is used to display the text with scrolling effect?
Answer: (a) Explanation: The 22) Which of the following HTML tag is the special formatting tag?
Answer: (c)
23) Which of the following is the correct way to send mail in HTML? Explanation: We can use the (anchor tag) tag, and the href attribute to mail a person. 24) Which of the following is the container for | ||
, and | ? |
---|
Answer: (b)
, and | elements. |
---|
25) How to insert a background image in HTML?
Answer: (a)
Explanation: To apply a background image on entire document, we have to specify the background attribute in the
of the HTML document.26) What are the types of unordered or bulleted list in HTML?
Answer: (c) disc, circle, square
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.
27) Which of the following is the correct way to create a list using the lowercase letters?
Answer: (b)
Explanation: The type attribute is used with the tag to specify the type of list items.
28) Which of the following is the correct way to start an ordered list with the count of numeric value 4?
Answer: (d)
Explanation: The start attribute is used with the tag to specify where to start the list items.
29) Which of the following HTML attribute is used to define inline styles?
Answer: (a) style
Explanation: The style attribute in HTML is used to change the style of existing HTML elements. It can be used with any HTML tag. To apply the style on the HTML tag, you should have the basic knowledge of CSS properties.
30) Which of the following is the paragraph tag in HTML?
Answer: (a)
Explanation: The
(paragraph tag) tag in HTML is used to define a paragraph in a webpage. The HTML
tag indicates the starting of new paragraph.
31) An HTML program is saved by using the ____ extension.
Answer: (b) .html
Explanation: The .html or .htm extension both are used to save the HTML program. We can save our HTML file either by using the .html extension or by .htm extension. When the file delivered to the network, the HTML extension indicates that the content of file is HTML.
32) A program in HTML can be rendered and read by -
Answer: (a) Web browser
Explanation: HTML programs can be read and rendered by the web browser. A web browser can support several web pages.
33) The tags in HTML are -
Answer: (c) not case sensitive
Explanation: HTML is a case-insensitive language, which means we can use tags either in the upper-case or in lower-case. It is recommended to write all tags in the lowercase for readability, consistency, etc.
34) Which of the following is the root tag of the HTML document?