
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
HTML Tag
The <hgroup> tag defines the heading of an HTML document. It is used to group the <h1>-<h6> headings.
Note − The <hgroup> tag introduced and deprecated in HTML5. It is dropped from W3C HTML5 specification.
Following is the syntax −
<hgroup> <h1></h1> <h2></h2> <h3></h3> <h4></h4> <h5></h5> <h6></h6> </hgroup>
Let us now see an example to implement the <hgroup> element in HTML −
Example
<!DOCTYPE html> <html> <head> <title>Document Title</title> </head> <body> <hgroup> <h1>Demo Heading One</h1> <h2>Demo Heading Two</h2> <hgroup> <p>This is demo text.</p> <p>This is demo text.</p> <p>This is demo text.</p> <p>This is demo text.</p> </body> </html>
Output
In the above example, we have set the two headings the <hgroup> −
<hgroup> <h1>Demo Heading One</h1> <h2>Demo Heading Two</h2> <hgroup>
- Related Articles
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML tag
- HTML Tag
- HTML Tag
- HTML Tag

Advertisements