HTML Elements MCQs
HTML Elements MCQs : This section focuses on "Elements" in Html. These Multiple Choice Questions (mcq) 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. Choose the correct option.
A. Elements in HTML describes the way of presenting the content in the browser.
B. All elements must have atleast one attribute associated with it.
C. Both a and b.
D. None of the above
View Answer
Ans : A
Explanation: Elements in HTML may or may not have an attribute.
2. In HTML, <ul> means
A. Underline
B. Unique list.
C. Unordered list.
D. None of the above
View Answer
Ans : C
Explanation: <ul> is used for listing thins an unordered manner.
3. Which one of the following options is correct?
A. Both block element and inline element start in the new line.
B. Both block element and inline element start in the same line
C. Only inline element starts in new line.
D. Only block element starts in new line.
View Answer
Ans : D
Explanation: Block element starts in a new line while inline elements start in the same line.
4. Which of the following is a block element?
A. <b>
B. <i>
C. <p>
D. <u>
View Answer
Ans : C
Explanation: <p> is a block element in HTML.
5. Which of the following is an inline element?
A. <p>
B. <h1>
C. <div>
D. <s>
View Answer
Ans : D
Explanation: <s> is an inline element in HTML.
6. Choose the appropriate tag to get the content in browser as follows:
<html>
<body>
______
Johny Johny!
Yes Papa
______
</body>
</html>
Johny Johny!
Yes Papa
A. <p>
<p>
B. <pre>
</pre>
C. <s>
</s>
D. <b>
</b>
View Answer
Ans : B
Explanation: <pre> tag is used to retain the spaces as well as a new line of the content as it is.
7. Which one of the following is the least significant heading tag?
A. <h1>
B. <h3>
C. <h5>
D. <h6>
View Answer
Ans : D
Explanation: HTML headings range from <h1> to <h6>,among which <h6> is the least significant.
8. Which one of the following is the most significant heading tag?
A. <h1>
B. <h3>
C. <h5>
D. <h6>
View Answer
Ans : A
Explanation: HTML headings range from <h1> to <h6>,among which <h1> is the most significant.
9. 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
View Answer
Ans : D
Explanation: All the above three statements are correct with respect to HTML tags.
10. Fill in the blank so that the browser display- Charge of elctron is 1.602x10^(-19) on exexcuting the HTML document?
<!DOCTYPE html>
<html>
<body>
__________________
</body>
</html>
A. Charge of elctron is 1.602x10-<sup>19</sup>
B. Charge of elctron is 1.602x10<sup>-19</sup>
C. Charge of elctron is 1.602x10-<sub>19</sub>
D. Charge of elctron is 1.602x10<sub>-19</sub>
View Answer
Ans : B
Explanation: The content written between <sup> and </sup> gets superscripted.
Also check :
Discussion