在本教程中:http://railstutorial.org/chapters/filling-in-the-layout#top
有"标题"
我知道在HTML中有"头"
但是,是什么<header>?
谢谢.
<head>定义有关文章的信息,例如包括元数据、标题、链接和脚本。它没有视觉外观。
<header>定义文档或部分的标题。它是在 HTML5 中添加的。它具有视觉外观,在标题中显示徽标、菜单和其他标题详细信息会很有用。它需要在体内定义。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ganesamoorthi M</title>
<meta name="author" content="Ganesamoorthi M">
<meta name="description" content="Head vs Header">
<meta name="keywords" content="HTML,CSS,Head,Header">
</head>
<body>
<header>
<h1>Ganesamoorthi M - Software Developer</h1>
</header>
<section>
<p>Head vs Header</p>
</section>
<footer>
<p>© 2018 Ganesamoorthi M</p>
</footer>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)