The difference between div and p
林大.
林大. 2018-10-21 18:13:56
0
1
1659

What is the difference between div and p? One is a paragraph and the other is a region block, right? But after writing it, there doesn’t seem to be much difference when it is displayed on the web page

林大.
林大.

reply all(1)
灭绝师太

They are all block-level elements, so there is no change in display. However, the p tag is a paragraph tag. When used to define a large section of text, you can use the attributes of the defined text. Setting the attributes of the applicable text in a div will have no effect.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!