HTML Meta Names and Metadata Registries
Name and content pairs
A meta name describes which document property is supplied; content carries its value. author names the author and application-name names a web application. A browser need not visibly display either.
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>Metadata practice</title> <meta name="author" content="Library team"> <meta name="application-name" content="Library catalog"> </head> <body> <h1>Catalog</h1> </body></html>The two metadata values are independently readable.
Theme and color scheme
theme-color suggests a surrounding UI color where supported. color-scheme declares the color schemes the page supports; it does not automatically design a complete dark theme. Test actual controls and contrast.
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>Metadata practice</title> <meta name="theme-color" content="#164e63"> <meta name="color-scheme" content="light dark"> </head> <body> <label> Search <input> </label> </body></html>The declarations exist; browser chrome and color adaptation depend on the environment.
Crawler-specific metadata
Search services document supported names such as robots. noindex requests exclusion from indexing by supporting crawlers that can access the page. It does not restrict access. Consult the intended consumer before adding an unfamiliar name.
<!doctype html><html lang="en"> <head> <meta charset="utf-8"> <title>Metadata practice</title> <meta name="robots" content="noindex"> </head> <body> <h1>Temporary draft</h1> </body></html>The tag is readable; actual crawler response is not tested.
Common mistakes and practice
Do not assume every arbitrary metadata name is standardized or understood. Check the HTML standard, extension registry and target service documentation. Use authentication for private pages.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
HTML Meta Names and Metadata Registries — Knowledge Check
Apply the metadata concepts taught in this lesson.
Which attribute carries the metadata value?
What does theme-color provide?
What does color-scheme describe?
Does noindex protect private information?
How should you choose an unfamiliar metadata name?