Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / HTML

HTML element: address

The contact element identifies contact information for the author or owner of the nearest self-contained section, not any postal address.

Version: WHATWG HTML Living Standard; index snapshot date recorded separately

Syntax

<address>contact information for the nearest article or body</address>

address applies to the nearest article ancestor, or to the document body when none exists; it does not describe unrelated people.

The address content model excludes heading and sectioning content; it also prohibits descendant address, header, and footer elements, keeping the contact block straightforward.

It can contain a name, organization, and working mailto: or tel: links; an ordinary place address without a contact role does not require it.

The example places address in an article, uses closest() to identify its owner, and observes the link’s mailto: scheme.

Examples

<!doctype html>
<meta charset="utf-8">
<article id="release">
  <h2>Release notes</h2>
  <address id="contact">Maintained by <a href="mailto:docs@example.test">Documentation team</a></address>
</article>
<output id="result"></output>
<script>
const contact = document.querySelector("#contact");
const link = contact.querySelector("a");
document.querySelector("#result").textContent = `owner=${contact.closest("article").id}; links=${contact.querySelectorAll("a").length}; scheme=${link.protocol}; text=${link.textContent}`;
</script>

Result

owner=release; links=1; scheme=mailto:; text=Documentation team

The result verifies the DOM relationship and contact URL; it sends no message and does not assess author-data completeness.

Sources