+ 1
what if i use p insted of div
4 ответов
+ 3
If it is a paragraph, use <p> instead. Generally, it is good practice to use semantic tags like <p>, <section>, <nav> instead of using <div> for everything.
And <p> is a block element. Don't mind anyone who says it is not
+ 1
Generally block elements are not used inside inline element.
Mean you can't put a div/table/form.... inside p .
In this way you can't suffer in structuring your page.
Otherwise you can put text in p and div as your choice
+ 1
Div tag is block, p is paragraph. Each tag used in different meanings!
0
thnks guyz