This question sounds pretty stupid but what is the practice regarding my question. Should I always do this:
<div>
Text goes here. Lots of text.
</div>
Or should I always wrap text in a <p>
tag?
<div>
<p>Text goes here. Lots of text.</p>
</div>
Please advise.
Yes, you can put it directly in the div. You should do whatever is hierarchically correct and semantically appropriate for whatever you are trying to do. That may mean you need a p tag, or it may not.
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