lt;headergt; vs. lt;headgt;(lt;标题gt;与lt;头gt;)
问题描述
在本教程中: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>
元素.
这篇关于<标题>与<头>的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:<标题>与<头>


- 如何显示带有换行符的文本标签? 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01
- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01