Thread
:
<div> instead of <p>?
View Single Post
07-20-2025, 08:30 PM
#
18
Moonbase59
Addict
Posts: 229
Karma: 1000244
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8", Pocketbook Era (16GB)
Quote:
Originally Posted by
Sarmat89
DIV is a generic block type. It works as good as P, but requires less work to generate.
Read
<div>: The Content Division element
.
The <div> HTML element is the generic container for flow content.
As a "pure" container, the <div> element does not inherently represent anything, i.e., it has no semantic meaning.
Instead, it's used to group content so it can be easily styled using the class or id attributes.
Usage note: The <div> element should be used
only
when no other semantic element (such as <article> or <nav> [or <p>!]) is appropriate.
Last edited by Moonbase59; 07-20-2025 at
08:33 PM
.
Moonbase59
View Public Profile
Find More Posts by Moonbase59
Track Posts by Moonbase59 via RSS