Chapter 9 — Advanced Document Metadata & Head Configuration
The <head> is the command centre of your page. This chapter explores every metadata weapon at your disposal: from description and robots tags to Open Graph, Twitter Cards, link relationships, script loading strategies, and extended properties that bridge the gap to the operating system.
What’s Inside This Chapter
- Section 9.1 — Textual Metadata & Crawler Instructions
<meta name="description">and<meta name="robots">– controlling search snippets and indexing. - Section 9.2 — Pragma Directives & Security Policy Mappings
http-equivfor timed refreshes and Content Security Policy – stopping XSS from the head. - Section 9.3 — Social Graph Configurations
Open Graph and Twitter Cards – making your links share beautifully on social media. - Section 9.4 — Relationship Links & Resource Performance Optimization
<link>for canonical URLs, stylesheets, icons, and resource hints likepreload,preconnect, andprefetch. - Section 9.5 — Script Placement Mechanics & Render Impact
deferandblocking="render"– taking control of script execution and painting. - Section 9.6 — Extended Metadata Properties
theme-color,color-scheme,viewport-fit,application-name,author,generator– the finishing touches for a polished, app‑like experience.
START READING
Turn to Section 9.1 and begin with the metadata that tells search engines what your page is about.