asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > P Element

<P Element | P Object


Denotes a paragraph.

HTML Syntax

Remarks

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.

Attributes

The <p> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

<P>In HTML, enclosing text within P tags
  displays the text as a paragraph.</P>
See Also


Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note