<hgroup> Tag Syntax

Rules for coding HTML hgroup elements
<body>
   ...
   ... flow content expected ...
   <hgroup>
      <hn>... phrasing content ...</hn>
      ...
   </hgroup>
   ...
</body>
  1. Inside an element where flow content is allowed, code one or more optional hgroup elements.
  2. Begin each hgroup element with a starting <hgroup> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the xmlns attribute on the <html> tag.
  3. Include any HTML global attributes on the <hgroup> tag as appropriate.
  4. End the element with a matching </hgroup> closing tag.
  5. Inside the heading element, code one or more HTML heading tags.

<aside> Content Model

Content of the <aside> Tag

The inner HTML of the hgroup element is restricted to HTML comments and only the HTML heading tags.