Home > Abakada: Back to Basics > Language References > HTML Elements > P Element
Denotes a paragraph.
HTML Syntax
<p
align = center | left | right
class = classname
dir = ltr | rtl
id = value
style = css_style_rules
title = text
>
The P element renders text in paragraph form.
The end tag </p> guarantees that the paragraph is followed by extra space ( a blank line ), though it may normally be omitted, especially if the paragraph is followed by a block element. A block element is one that starts on a new line and is itself preceded by extra space, like another P element, for instance.
If a P element is used with no content, it acts as a spacer. The element inserts a blank line.
This element is a block element. All P elements start on a new line and are usually preceded by extra space.
A <p
> element’s end tag can be omitted if the <p
> element is immediately followed by an <address
>, <article
>, <aside
>, <blockquote
>, <details
>, <dialog
>, <div
>, <dl
>, <fieldset
>, <figcaption
>, <figure
>, <footer
>, <form
>, <h1
>, <h2
>, <h3
>, <h4
>, <h5
>, <h6
>, <header
>, <hgroup
>, <hr
>, <main
>, <menu
>, <nav
>, <ol
>, <p
>, <pre
>, <search
>, <section
>, <table
>, or <ul
> element, or if there is no more content in the parent element and the parent element is an HTML element that is not an <a
>, <audio
>, <del
>, <ins
>, <m
>ap, <noscript
>, or <video
> element, or an autonomous custom element.
The <p>
element has no attribute of its own, but supports global attributes common to all HTML elements.
<P>In HTML, enclosing text within P tags
displays the text as a paragraph.</P>