Metadata Names

HTML meta name="theme-color"

Suggests a color for browser interface surfaces. A media attribute may specify conditional alternatives; it is not a replacement for CSS and support varies. Place this metadata in the document head. Its consumer depends on the name: some values are browser settings, others are crawler or application metadata.

Formal Syntax & Structure

html syntaxhtml
<meta name="theme-color" content="#25465d">

Parameters & Attributes

NameTypeDescription
namekeywordUse theme-color.
contentname-specific text or tokensExample value: #25465d. Interpret according to the metadata name.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>Example</title>    <meta name="theme-color" content="#25465d">  </head>  <body>    <p>Example document</p>  </body></html>
HTML Reference