When writing in HTML, the

tag is used to designate a heading for a
element. Upon clicking the heading, additional details are shown. It is useful when you would like to include extra information without taking up space. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

Here is some information.

Here are additional details about this information.

Example result

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the

tag does not have any unique attributes, it does utilize all of the standard attributes.

  • Example of code
  • Example result
  • Attributes
  • Compatibility
  • Related information

Here are additional details about this information.

Compatibility

Browser, Compatibility, Container tag, Interactive, Web design terms, Widget

  • HTML and web design help and support.