Content sections
The content
sections are quite similar to the semantic content sections. The main difference is that the use of all the given elements are not driven by the outline or purpose of the document like the semantic sections are.
hr
The hr
element is the horizontal rule element, its syntax is as follows:
<hr>
Description
By default, the hr
element will draw a horizontal line in the content. You can change the look of this element through CSS.
This element should never have any content inside of it:
<p>This is a paragraph.</p> <hr/> <p>This paragraph goes in another direction.</p>
pre
The pre
element is the preformatted text:
<pre></pre>
Description
The text in an HTML document is usually not shown in the browser with the same whitespace or line ...
Get Web Developer's Reference Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.