+ 1

Using <p> tag as a container

I see many people are using <p> tag as a container for <img> or even inside <form> for <input> tags, can someone please help me understand why? Couldn't they just use <div>/<article>/<section> instead?

21st Nov 2020, 10:59 PM
Bahamin Shahriari
Bahamin Shahriari - avatar
3 odpowiedzi
22nd Nov 2020, 3:28 AM
DEVELOPER
DEVELOPER - avatar
0
I know it's a block-level element, but I needed more specifically detail why they are using a tag that's meant to be used for parameter and not using div tag which also a block-level element.
22nd Nov 2020, 3:16 PM
Bahamin Shahriari
Bahamin Shahriari - avatar