简体   繁体   中英

Better option with css div and paragraph

I have a typical code review item where I am requested to use paragraph instead of all divs in my UI code. I am beating my head to trace why was this so important. As p tag more faster than div tag? adding styles to paragraph or div will take same amount of time? This review items seems to be very bad but I want to know if this item is 100% valid?

There is no difference in SEO for <p> and <div> tags. You should build your site in the way that makes the most sense: <p> for paragraphs, <div> for structural div elements.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM