The Head Element
The <head> contains metadata and resource references that describe the document. Common children include <title>, <meta>, <link>, <style>, and <script>.
Useful Head Metadata
<head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta name="description" content="Learn modern HTML from fundamentals to advanced concepts.">\n <title>HTML Mastery</title>\n</head>💡 These elements define character encoding, responsive viewport behavior, search description metadata, and the browser tab title.
Key Takeaways
- The head contains metadata rather than normal visible page content.
- A meaningful title is important for users, browsers, and search engines.
Knowledge Check
Which element defines the browser document title?