HTML P Tag
How to use the P tags properly to markup text on a web page.
The p element in HTML is used for paragraphs of text.
Space Between Elements
Normally there will be margin between elements, this is controlled through the Margin and Padding Properties of CSS. It is recommended to read An Introduction to CSS, to understand how to use apply styles.
Attributes
Standard Attributes
| Attribute: | Value: | Description: | DTD: |
| Attrs | Other Attributes | Common, I18n, Event | STF |
DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.
Example:
<p>This is a line of text.</p>
Paragraphs goes in the body section, between the body tags. Beginners might want to read the Tutorial Entry: Paragraphs and Headings.