<标题>与<头> [英] <header> vs. <head>

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

问题描述

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

有头"

我知道在 HTML 中有头"

I know that in HTML there is "head"

但是,<header> 是什么?

谢谢.

推荐答案

<header>HTML5 在某些特定情况下应该替换 <div>.特别是页面的标题"部分——不管是什么,通常是被包裹在 <div class="header"> 中的部分——在 HTML5 中你应该使用

代替.

<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.

Mark Pilgrim 的 Dive into HTML5 第 3 章 做得很好详细了解何时以及为何使用新的 <header> 元素.

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

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