HTML tag

The text in angle brackets, such as <p> or </p>, that marks where an HTML element starts and ends.

In more detail

A start tag like <section class="card"> opens an element and can carry attributes; an end tag like </section> closes it. In the DOM, an element's tagName property returns its tag in capitals, such as SECTION.

Related terms

Taught in

References