When writing in HTML, the

tag is a block element used as a container for navigational or introductory items. It is useful for holding content like a website’s logo and main section links, and a search box and elements. The following sections contain information about the
tag, including an example of it in use, and related attributes and browser compatibility.

Example of
code

Computer Hope

Hi, I'm heading style 3.

Example result

The header in the example has had both external and inline CSS added to improve its appearance.

A

tag cannot be used inside an
,
, or parent
element.

  • Example of
    code
  • Example result
  • Attributes
  • Compatibility
  • 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

Browser, Compatibility, Container tag, Hyperlink, Logo, Search box, Web design terms

  • HTML and web design help and support.