html教程

定义和用法

<hgroup> 标签用于对网页或区段(section)的标题进行组合。

 

实例

使用 <hgroup> 标签对网页或区段(section)的标题进行组合:

<hgroup> 
<h1>Welcome to my WWF</h1> 
<h2>For a living planet</h2> 
</hgroup> 
<p>The rest of the content...</p>


 

 代码:

<!DOCTYPE HTML> 
<html> 
<body> 
<hgroup> 
<h1>Welcome to my WWF</h1> 
<h2>For a living planet</h2> 
</hgroup> 
<p>The rest of the content...</p> 
</body> 
</html>


 

HTML 4.01 与 HTML 5 之间的差异

<hgroup> 标签是 HTML 5 中的新标签。

提示和注释

提示:请使用 <figcaption> 元素为元素组添加标题。 HTML 5 从入门到精通-中文学习教程

 146 ,  261  05-16-2011

标准属性

<hgroup> 标签支持 HTML 5 中的标准属性。

事件属性

<hgroup> 标签支持 HTML 5 中的事件属性。