html5 wrapper,html - html5 section as generic wrapper - Stack Overflow

The "section" tag is used to group general content and can be used with a generic title (h1, h2 or other).

There are some rules to use "section" tag, those are the most important:

Don't use it for template structure - use other tags (header, footer, div) instead

Don't use it if you can use the "article" tag - so your articles can be used in other sites

You can use a "section" in an "article" and, of course, an "article" in a "section".

Generally you can use it in order to structure the page by grouping related content: for example in a blog you can define two sections, one for the last entry and another for the oldest.

You can also have a "section" in a "section": you can have as many section (generic contents) as you need.

Last post

[My post...]

[Comments...]

Oldest post

[First post...]

[Second post...]

[Third post...]

Reading your code I think you can improve your structure using this:

Generic content

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值