Skip to main content
FREE Mock interview & resume review with Sumit. Free right now, no payment needed.Book a slot

Head vs Body — HTML Fundamentals

Complete HTML Handbook

Beginner to Advanced — Tags, Forms, SEO, Accessibility & Interview Prep

138 tags150 interview Qs60 challenges
Head vs Body

<head> holds machine-readable metadata; <body> holds content users see. Scripts may go in either — prefer defer at end of body or in head with defer.

<head><title>Product</title><meta name="description" content="..."></head>
<body><h1>Product</h1></body>

Output: Title in tab; description for search snippets; visible heading.