In CSS, hgroup means "title group", which is used to combine the titles of web pages or sections. The syntax is "
Title 1Title 2……
”. The hgroup tag only groups the titles and has no effect on the style of the titles.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
"hgroup" is the abbreviation of "heading group" and means "heading group". So what does it mean when it acts as a tag in HTML? Let’s take a look together!
tag definition and usage
In HTML, the tag is used to group the titles of web pages or sections, that is, to group consecutive titles in a web page or section. The ~
elements are combined.
The tag only groups the title and has no effect on the style of the title.
Tag syntax format
<hgroup><h2>标题1<h2/><h2>标题2<h2/>……</hgroup>
Note: If the article has a title and subtitle, you can use the tag. Normally, articles with only one main title do not need to use the tag.
Example:
<html> <head> <meta charset="utf-8" /> <title>html中hgroup标签的详细介绍</title> </head> <body bgcolor="bisque"> <hgroup> <h1>hgroup标签的详细介绍</h1> <h2>hgroup标签简介</h2> </hgroup> </body> </html>
Effect:
Recommended learning: css video tutorial
The above is the detailed content of What does hgroup mean in css. For more information, please follow other related articles on the PHP Chinese website!