HTML GROUPING TAGS

Grouping tags are designed to group similar blocks of text or content together under a tag group, such as a paragraph or a figure, or to split up a series of similar groups with a subtle effect, such as a line.

All HTML grouping tags support the standard global attributes, described earlier in this appendix in the section “HTML Global Attributes.”

<p> . . . </p>

The <p> tag group represents a paragraph of text. Although normal paragraphs segregate sentences into like-minded topics and flow, the physical separation can be manipulated via CSS to the point that the paragraph itself is no longer distinguishable.

Even if you have a single sentence of only a few words, if it is to display as a standalone block of text, wrap it in ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications 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.