必须配合 h 元素一起使用 解释 标题语句
<section>
<h1>PRC</h1>
<p>The People's Republic of China was born in 1949...</p>
</section>
使用 <hgroup> 标签对网页或区段(section)的标题进行组合:
请使用 <figcaption> 元素为元素组添加标题
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>section</title>
</head>
<body>
<h1>你好</h1>
<p>html5</p>
<section>
<h2>欢饮学习</h2>
<p>huanyinhi </p>
</section>
<!-- 分组-->
<hgroup>
<h1>标题1</h1>
<h2>标题2</h2>
</hgroup>
<!--里面包含h元素-->
<section>
<h3>图文展示区</h3>
<figure>
/*用作文档中插图的图像: <figure>
<p>黄浦江上的的卢浦大桥</p>
<img src="shanghai_lupu_bridge.jpg" width="350" height="234" />
</figure>*/
<img src="#">
<figcaption>三星</figcaption>
</figure>
<figure>
<img src="#">
<figcaption>华为</figcaption>
</figure>
</section>
<section>
<h3>留言区</h3>
<!--open 就是打开意思 <dialog open>这是打开的对话窗口</dialog></th>-->
<dialog open>
<dl>
<dt>张三</dt>
<dd>我喜欢华为</dd>
</dl>
</dialog>
</section>
</body>
</html>
html5 机构化元素
最新推荐文章于 2021-06-18 12:44:10 发布