Horje
HTML <hgroup> Tag

The <hgroup> tag is used to surround a heading and one or more <p> elements.

The heading inside the <hgroup> element can be any of the <h1> to <h6> headings.

Note: The <hgroup> element does not render as anything special in a browser. However, you can use CSS to style the <hgroup> element and its content.


How to create HTML <hgroup> Tag

Use the hgroup element to mark that the heading and the paragraph are related
index.html
Example: HTML
<hgroup>
  <h2>Norway</h2>
  <p>The land with the midnight sun.</p>
</hgroup> 

Output should be:

How to create HTML <hgroup> Tag

Which browser will support for HTML <hgroup> Tag

Which browser will support for HTML <hgroup> Tag

How to set Default CSS Settings for HTML <hgroup> Tag

Most browsers will display the <hgroup> element with the following default values
index.html
Example: HTML
<style>
hgroup { 
  display: block;
}
</style>

Output should be:

How to set Default CSS Settings for HTML <hgroup> Tag





Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference