Lesson 20: HTML Head & Layout

Understanding Head Meta and Page Layout

The <head> section contains document metadata, page titles, styles, and scripts that are not directly visible inside the webpage body.

<head><meta charset="UTF-8"><title>Page Title</title></head>

Why&How to use :

Head metadata configures character encoding, viewport settings for mobile responsiveness, SEO title tags, and external CSS stylesheet connections.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proper Document Layout</title>
</head>
<body>
<h1>Page Content</h1>
<p>This page uses standard head metadata configuration.</p>
</body>
</html>