Skip to content
Marcos Caceres edited this page Mar 27, 2026 · 2 revisions

<title>

The <title> HTML element sets the title of the specification. ReSpec uses its content to generate the document's <h1> heading and the document header title block.

Usage

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Payment Request API</title>
  <!-- ... -->
</head>
<body>
  <section id="abstract">
    <p>This specification defines the Payment Request API.</p>
  </section>
</body>
</html>

Notes

  • The <title> is the simplest and recommended way to set the spec title
  • If you need markup in the title (e.g., <code> or non-ASCII characters), use <h1 id="title"> instead
  • Keep the <title> and any <h1 id="title"> in sync — ReSpec warns if they differ

Guides

Configuration options

W3C Configuration options

Linting rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

HTML attributes

CSS Classes

Special properties

Clone this wiki locally