<报头GT;与< head> [英] <header> vs. <head>
问题描述
在本教程中: http://railstutorial.org/chapters/filling- in-the-layout#top
有标题
我知道在HTML有head
但是,什么是< header>
?
谢谢。
< header>
是 HTML5 中应该替换< div>
,了解某些特定情况。特别是,页面的标题部分 - 无论那是什么,通常是HTML5中包含< header>
。
< 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>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!