问题描述
在本教程中:
有标题
我知道在HTML有head
但是,什么是< header> ?
谢谢。
< header> 是中应该替换< div> ,了解某些特定情况。特别是,页面的标题部分 - 无论那是什么,通常是HTML5中包含< div class =header> 的部分您应该使用< header> 。
.info / semantics.htmlrel =noreferrer>深入HTML5的第3章作者:Mark Pilgrim 做的很好,详细介绍了何时以及为什么要使用新的< header> 元素。In this tutorial: http://railstutorial.org/chapters/filling-in-the-layout#top
There is "header"
I know that in HTML there is "head"
But, what is <header> ?
Thanks.
<header> is one of several new tags in HTML5 that are supposed to replace <div> for some specific situations. In particular, the "header" part of your page - whatever that is, usually the part that would be wrapped in <div class="header"> - in HTML5 you should use <header> instead.
Chapter 3 of Dive into HTML5 by Mark Pilgrim does an excellent job going into the details of when and why to use the new <header> element.
这篇关于<报头GT;与< head>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!