<!DOCTYPE html>
<html>
<!--创建文头-->
<head>
<title>HTML5页面结构</title>
<meta charset = "UTF-8" />
<span style="color:red;font-style:italic;">
这里是页头</span>
<hr>
</head>
<body>
<!--创建旁注-->
<aside style="font-size:larger;font-style:italic;color:blue;float:right;width:120px;">
HTML5页面使用旁注.
</aside>
<!--创建导航-->
<nav>
<a href="/Baking/" target="_blank">导航1</a> |
<a href="/ingredients/" target="_blank">导航2</a> |
<a href="/mixing/" target="_blank">导航3</a> |
<a href="/toppings/" target="_blank">导航4</a>
</nav>
<!--插入图片-->
<figure>
<img src="picture.jpg" width="170" height="128" />
</figure>
<!--[h1]至[h6]元素-->
<hgroup draggable="true">
<h1>h1</h1>
<h2>h2</h2>
<h2>h3</h2>
</hgroup>
<p>
This specification defines the 5th major version, first minor revision of the core language of the World Wide Web: the Hypertext Markup Language (HTML).
</p>
<p>
In this version, new features continue to be introduced to help Web application authors, new elements continue to be introduced based on research into prevailing authoring practices, and special attention continues to be given to defining clear conformance criteria for user agents in an effort to improve interoperability.
</p>
<!--将文档分成不同区域-->
<article>
<section id="mixing">
<h2>The proper way to mix ingredients</h2>
<p>When using a stand-mixer, it is important that you do not over mix the
ingredients...</p>
</section>
<section id="baking">
<h2>Proper baking techniques</h2>
<p> It is important that you bake your cheesecake using a lot of moisture in the
oven...</p>
</section>
</article>
</body>
<!--创建文脚-->
<footer> © 2012 - fwwdn - All rights reserved </footer>
</html>
html5页面结构
最新推荐文章于 2022-08-04 15:00:59 发布
本文详细介绍了HTML5页面的基本结构及元素使用方法,包括文头、旁注、导航、图片插入、标题层级、文档区域划分及文脚等内容,旨在帮助读者理解如何构建清晰且结构化的HTML5网页。
6344

被折叠的 条评论
为什么被折叠?



