HTML Heading MCQs

HTML Heading MCQs : This section focuses on the "Heading" tag 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. How many HTML heading tags are there?

A. 3
B. 4
C. 5
D. 6

View Answer


2. In HTML, which one of the following is not a heading tag?

A. <h1>
B. <h0>
C. <h6>
D. <h3>

View Answer


3. Which one of the following tag will be used to add a heading to a content?

A. <hr>
B. <p>
C. <br>
D. <h1>

View Answer


4. In order to display the contents as follows:
Headings- HTML
Sub-heading- Elements
Sub-sub-headings- Heading tags
Which one of the following options will be most preferred as tags for each of the above line respectively?

A. <h1>,<h2>,<h3>
B. <h3>,<h2>,<h1>
C. <h6>,<h5>,<h4>
D. <h5>,<h3>,<h1>

View Answer


5. Choose the correct option.

A. In HTML, <p> is an inline element while <h1> is a block element.
B. In HTML, <h1> is an inline element while <p> is a block element.
C. In HTML, both <p> and <h1> are inline elements.
D. In HTML, both <p> and <h1> are block elements.

View Answer


6. Which one of the following is used for adding paragraph in HTML?

A. <pre>
B. <p>
C. <para>
D. <pg>

View Answer


7. How the content of the following will be displayed when executed in browser?

<!DOCTYPE html>
<html>
<body>
<p>LetsFindCourse</p>
<p>Learning Made Easy!</p>
</body>
</html>

A. LetsFindCourseLearning Made Easy!
B. LetsFindCourse Learning Made Easy!
C. LetsFindCourse
Learning Made Easy!
D. <p>LetsFindCourse</p>
<p>Learning Made Easy!</p>

View Answer


8. Fill in the blank from the given options in order to display the paragraph in red colour font.

<!DOCTYPE html>
<html>
<body>
<p style="__________">LetsFindCourse</p>
</body>
</html>

A. color:red;
B. color=red;
C. text-color:red;
D. text-color=red;

View Answer


9. With respect to the HTML code given below, which line will have the highest font size?

<!DOCTYPE html>
<html>
<body>
<h1 style="font-size:15px;">Heading 1</h1>
<h3 style="font-size:30px;">Heading 3</h3>
<h5 style="font-size:20px;">Heading 5</h5>
</body>
</html>

A. Heading 1
B. Heading 3
C. Heading 5
D. All of the above

View Answer


10. On execution of below HTML code, size of World will be equal to size of which HTML tag?

<!DOCTYPE html>
<html>
<body>
<h4><h2><h3><h1>World</h1></h3></h2></h4>
</body>
</html>

A. h1
B. h2
C. h3
D. h4

View Answer





Also check :


Discussion


* You must be logged in to add comment.