简体   繁体   中英

In Html5 we can use “div” inside the “section” tag?

Can one use div inside the section block like below?

<section>
 <div>Text</div>
</section>

Yes you can use a div inside a section.

if you want know much more about div and section difference then you can refer below link.

explanation of div and section

i hop it will helpful to you.

yes of course

check div element can be nested inside the next HTML elements:

for any doubts check out the place in page section of each element; the list of nested elements is provided there

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