As the title says, would it be better to wrap text using <div>
or using <p>
. Which would work better for SEO?
Semantically you should always use <p>
to hold any "content" text within the body of your page. Similarly, headings should always go in <h1>
, <h2>
etc. Only use <div>
for layout and positioning purposes (so for example as a wrapper around the main body of content, sidebars etc).
Search engines will typically rank pages using semantic HTML higher in their results as pages laid out in this way are more "machine-readable".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With