Publish in HTML Tutorial el 24/05/2025 15:17
The <hgroup> element is used to group a set of heading elements (<h1> to <h6>) when you have multiple levels of headings that belong together semantically. This element is particularly useful for creating subtitle relationships without affecting the document outline.
This shows a simple hgroup containing a main title and subtitle.
Demonstrating how hgroup can contain multiple heading levels.
Showing how to style an hgroup element and its contents.
Using JavaScript to dynamically update hgroup content.
Using JavaScript to toggle the visibility of an hgroup element.
The <hgroup> element is widely supported in all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera. However, some older browsers might not recognize it as a semantic element, though they will still render the content.
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...