HTML5的结构和语义(2):结构_html5教程技巧
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了HTML5的结构和语义(2):结构_html5教程技巧,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2643字,纯文字阅读大概需要4分钟。
内容图文
![HTML5的结构和语义(2):结构_html5教程技巧](/upload/InfoBanner/zyjiaocheng/390/57dbdec557af48b78661ae80e43c6e67.jpg)
· section:这可以是书中的一章或一节,实际上可以是在 HTML 4 中有自己的标题的任何东西
· header:页面上显示的页眉;与 head 元素不一样
· footer:页脚;可以显示电子邮件中的签名
· nav:指向其他页面的一组链接
· article:blog、杂志、文章汇编等中的一篇文章
我们来考虑一个典型的 blog 主页,它的顶部有页眉,底部有页脚,还有几篇文章、一个导航区和一个边栏,见代码1 典型的 blog 页面
Mokka mit Schlag
"/blog/birding/2007/04/23/spring-comes-and-goes-in-sussex-county/">
Spring Comes (and Goes) in Sussex County
Yesterday I joined the Brooklyn Bird Club for our
annual trip to Western New Jersey, specifically Hyper
Humus, a relatively recently discovered hot spot. It
started out as a nice winter morning when we arrived
at the site at 7:30 A.M., progressed to Spring around
10:00 A.M., and reached early summer by 10:15.
"/blog/birding/2007/04/23/but-does-it-count-for-your-life-list/">
But does it count for your life list?
Seems you can now go href="http://www.wired.com/science/discoveries/news/
2007/04/cone_sf">bird watching via the Internet. I
haven't been able to test it out yet (20 user
limit apparently) but this is certainly cool.
Personally, I can't imagine it replacing
actually being out in the field by any small amount.
On the other hand, I've always found it quite
sad to meet senior birders who are no longer able to
hold binoculars steady or get to the park. I can
imagine this might be of some interest to them. At
least one elderly birder did a big year on TV, after
he could no longer get out so much. This certainly
tops that.
即使有正确的缩进,这些嵌套的 div 仍然让人觉得非常混乱。在 HTML 5 中,可以将这些元素替换为语义性的元素,见代码2 用 HTML5编写的典型blog页面
Mokka mit Schlag
"/blog/birding/2007/04/23/spring-comes-and-goes-in-sussex-county/">
Spring Comes (and Goes) in Sussex County
Yesterday I joined the Brooklyn Bird Club for our
annual trip to Western New Jersey, specifically Hyper
Humus, a relatively recently discovered hot spot. It
started out as a nice winter morning when we arrived at
the site at 7:30 A.M., progressed to Spring around 10:00
A.M., and reached early summer by 10:15.
内容总结
以上是互联网集市为您收集整理的HTML5的结构和语义(2):结构_html5教程技巧全部内容,希望文章能够帮你解决HTML5的结构和语义(2):结构_html5教程技巧所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。