The
HTML element represents a paragraph of text. It is one of the most fundamental structural building blocks used in web development to group related blocks of content. Key Characteristics
Block-Level Element: It automatically starts on a new line and spans the full width available.
Default Spacing: Browsers inherently apply default vertical margins (top and bottom) to separate paragraphs visually.
Content Model: It can only contain phrasing content (like text, images, or links). It cannot safely nested other block-level elements like
, or another
. Basic Syntax
A paragraph is declared using an opening
tag and a closing
tag:
This is a complete sentence inside a standard paragraph element.
Use code with caution. Important Usage Rules 4.4.1 The p element – HTML Standard
Leave a Reply