Miscellaneous ⇒ Chit-Chat :: Archives ⇒ p vs br :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexChit-Chat

Archived ⇒ p vs br


<p></p> vs <br />

It doesn't really make a big difference which one to use, right?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


The P element represents a paragraph. It cannot contain block-level elements (including P itself).

A line break is defined to be a carriage return (&#x000D;), a line feed (&#x000A;), or a carriage return/line feed pair. All line breaks constitute white space.

<p> is used for text paragraphs when your reading a book do you notice each paragraph the beginning sentence always indents. That is what the <p> tag is used for. <br /> is used to create a break or space so that content following it will be displayed below the content above it.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


Yeah, these were exact points I could think of.

So, if I don't want to use a feature like p::first-letter then <br /> is a better equivalent, right? And as <p> is more strictive, because it disallows using block elements.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


or <div>

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


well yes

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-

All times are UTC