When writing in HTML, the

tag is a block element used to group thematically similar content together. Examples are generic documents and application sections. As a general rule,
shouldn’t be used if there is no natural for it. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of
code

Heading

Document content

Example result

Document content

This element is unique in that it is a phrase tag, which indicates that a section of text has structural meaning.

The

tags should not be used for styling, instead use the
tags for styling changes. If the content that would be contained in the
tag relates to other portions of the page with its own heading, consider using the
tags.

  • Example of
    code
  • Example result
  • Attributes
  • Compatibility
  • Additional phrase tags
  • Related information

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.

Compatibility

Additional phrase tags

Browser, Compatibility, Container tag, CSS, HTML article tag, HTML div tag, HTML nav tag, Web design terms

  • HTML and web design help and support.