<报头GT;与< head> [英] <header> vs. <head>

查看:126
本文介绍了<报头GT;与< head>的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本教程中: http://railstutorial.org/chapters/filling- in-the-layout#top



有标题



我知道在HTML有head

但是,什么是< header>



谢谢。

解决方案

< header> HTML5 中应该替换< 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.

这篇关于&LT;报头GT;与&lt; head&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆