Are you ready?
12 questions to solve
Instructions
- This quiz goes to full-screen once you press the Start button.
- At the end of the quiz, you are able to review all the questions that you answered wrong and see their explanations.
The
<h1>
element produces a heading that's smaller in size and lesser in importance than the one produced by <h6>
. True or false?The elements
<h1>
, <h2>
, <h3>
, <h4>
, <h5>
, and <h6>
, in this very order, decrease in their size and level of importance. Hence, the statement above is false. For more information, refer to HTML Text — Headings.As per usability guidelines, is it OK to have more than one
<h1>
element on a webpage?Absolutely not. An HTML document must have one and only
<h1>
element to represent the most important heading of the document. For more information, refer to HTML Text — Headings.What does the
<h7>
element represent in HTML?There's no such element in HTML as
<h7>
; the last heading element is <h6>
. Hence, the correct choice is (C). For more information, refer to HTML Text — Headings.What does the
<p>
element denote?<p>
denotes a paragraph in HTML, and this goes with choice (C). For more information, refer to HTML Text — Paragraphs.Should the
<p>
element be used to denote a subheading in an HTML document?Not at all! The
<p>
element is meant for representing paragraphs and that's precisely what we should use it for. For subheadings, we already have an ample provision of heading elements (<h2>
, <h3>
, and so on). For more information, refer to HTML Text.Which of the following HTML elements can be used to format a piece of text as bold?
Both the
<b>
and <strong>
elements can be used to format a given piece of text as bold in HTML, however it's important for us to remember the difference between them. For more information on this topic, refer to HTML Text — The similar <b>
and <i>
elements.Both
<b>
and <i>
are termed as deprecated elements in HTML5. True or false?Both
<b>
and <i>
are an active part of the HTML5 standard and aren't deprecated by any means. Hence, the given statement is false. For more information, refer to HTML Text — The similar <b>
and <i>
elements.How do browsers typically style text wrapped up inside an
<em>
element?The
<em>
element represents an 'emphasized' piece of text in HTML which is typically italicized by browsers. Hence, the correct choice is (B). For more information, refer to HTML Text — Bold and italicize.Consider the following output:
E = mc2
Which of the following HTML code snippets aligns with this output?
The text shown above is of a fairly large size, and aligns more with the
<h1>
element as compared to <p>
. Besides this, the superscript '2' in the text would be denoted via <sup>
. Consequently, the correct choice is (B). For more information, refer to HTML Text — Superscript and subscript.The
<br>
element is a void element in HTML. True or false?Yes that's right;
<br>
indeed is a void (non-container) element in HTML since it has no ending tag. For more information, refer to HTML Text — Line breaks via <br>
.What is the
<br>
element used for?<br>
stands for 'break' and serves to introduce a line break, i.e. a newline character, into text. Likewise, the correct choice is (B). For more information, refer to HTML Text — Line breaks via <br>
.Suppose we want to represent two paragraphs of text in an HTML document. Which of the following two code snippets is more suitable for this task and why?
Snippet 1:
<p>This is paragraph 1.<br><br>This is paragraph 2.</p>
Snippet 2:
<p>This is paragraph 1.</p>
<p>This is paragraph 2.</p>
If we wish to represent two paragraphs in an HTML document, we must use two different
<p>
elements, even though a similar output could be achieved by having two <br>
s in between the paragraph texts (however, that isn't a good practice). For more information, refer to HTML Text — Line breaks via <br>
.