HTML Essential Training - Formatting Text - LinkedIn Learning QUIZ Answers(Bold Text) with Explanation
Question 1 of 21
How many elements are there in the following HTML code?
<h1> The End of the World is Nigh </h1> <article> Musings on our Current Social Predicament, by <em> Trans I. Tory </em> <p> Random content….</p> </article>
four
Correct
Count the number of "/". There is an opening and closing tag, and together they make one pair.
Question 2 of 21
Which code produces the output shown in the image below?
2<sup>5</sup><sub><small>8</small></sub>
Incorrect
Check the relative sizes of the superscript and subscript.
Dates and times are both represented by the <time> element, with a datetime attribute.
Question 8 of 21
Which tag preserves the spaces, tabs, and line breaks within a piece of text so a poem or piece of code can be presented faithfully?
<pre>
Correct
The `<pre>` tag preserves formatting.
Question 9 of 21
Which HTML element has the correct structure?
<h1>The Headline</h1>
Correct
Elements should have an opening and closing tag, unless they're empty elements, which don't need the closing tag.
Question 10 of 21
How does the break tag differ from most other inline and block tags?
It does not require a closing tag.
Correct
The break tag can occur all by itself.
Question 11 of 21
Why is it important to remember to use closing tags?
so it is clear where elements end
Correct
It is easy for most people to forget to close elements.
Question 12 of 21
Which elements are used to mark-up code on screen?
<pre> and <code>
Correct
The <pre> element is used for listings where line breaks and other white space need to be preserved, while <code> is more for short snippets inside of other content.
Question 13 of 21
Which type of element is typically a block?
<p>
Correct
The paragraph element creates an area on a page, rather than a portion of a line.
Question 14 of 21
What's a true statement about the difference between the <blockquote> element and the <q> element?
<blockquote> is a block-level element, while the <q> element is inline, nested inside another block-level element.
Correct
If you want to highlight a short quote, <q> is great to use inside of a paragraph or other block-level element. <blockquote> is for when you want something bigger, to really stand out.
If all you want is indentation, Cascading Stylesheets offer more options.
Lists can be used to mark up navigation.
Correct
While lists are normally used to present content, their structured and nestable semantics also make them good for navigation menus.
Only use HTML lists when the content should look like a bulleted list, a numbered list, or a checklist.
Incorrect
HTML also offers definition lists, and list semantics are flexible enough to be used in other contexts, like navigation lists.
Question 17 of 21
Besides visual appearance, what is most important about headline levels?
appropriate indentation
Incorrect
Indentation is not necessarily tied to headline level.
creating an organizational hierarchy
Correct
The hierarchy created by headlines can be used for other purposes.
Question 18 of 21
When we want to convey importance, seriousness, or urgency, which element do we use?
<strong>
Correct
The <strong> element is meant for importance.
Question 19 of 21
Which elements are used to convey meaning, instead of just typesetting convention?
<em> and <strong>
Correct
These tags are used to convey a sense of importance or stress when spoken.
Question 20 of 21
What code produces the list shown in this image?
<h1> List Demonstration </h1> <dl> <dt> object </dt> <dd> an item or actualized concept </dd> <dt> scope </dt> <dd> realm or domain of validity </dd> <dt> tone </dt> <dd> degree of specification adherence </dd> </dl>
Correct
By default, the term and the definition appear on different lines.
<h1> List Demonstration </h1> <dl> <dt> object </dt> <def> an item or actualized concept </def> <dt> scope </dt> <def> realm or domain of validity </def> <dt> tone </dt> <def> degree of specification adherence </def> </dl>
Incorrect
The definition tag specification is incorrect.
Question 21 of 21
How many different headline levels are displayed in the image shown below?
four
Correct
There are two lines displayed as paragraph elements, while the rest are headlines.
No comments:
Post a Comment