Home > Web Front-end > Front-end Q&A > What does hgroup mean in css

What does hgroup mean in css

醉折花枝作酒筹
Release: 2023-01-05 16:13:07
Original
3857 people have browsed it

In CSS, hgroup means "title group", which is used to combine the titles of web pages or sections. The syntax is "

Title 1

Title 2

……
”. The hgroup tag only groups the titles and has no effect on the style of the titles.

What does hgroup mean in css

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>
Copy after login

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>
Copy after login

Effect:

What does hgroup mean in css

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!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template