+ 1
What is the difference between <div> and <p>?
2 Answers
+ 2
<p> is specifically used when writing a paragraph. meaning that it indicates a paragraph and has semantic meaning
while <div> is also known as division. Basically a block container for other content. Usually used when defining a section or division in html doc or can also group block-elements to format them with css.
+ 1
P is textual tag it is use to write text .div can also be used for texting.but
Div is basically an structure tag.before HTML5 when we don't have semantic tag (header,footer,article ,aside,....) .in html we use div to structure webpages.it can act as container for various element.
Now in html5 we use it as both for structure and text mostly hence it looks similar to p.