+ 1

what if i use p insted of div

5th Aug 2020, 7:22 PM
Darkboy Shohan
Darkboy Shohan - avatar
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
5th Aug 2020, 8:26 PM
Ore
Ore - avatar
+ 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
5th Aug 2020, 7:41 PM
Divya Mohan
Divya Mohan - avatar
+ 1
Div tag is block, p is paragraph. Each tag used in different meanings!
5th Aug 2020, 8:16 PM
george
george - avatar
0
thnks guyz
6th Aug 2020, 11:35 AM
Darkboy Shohan
Darkboy Shohan - avatar