HTML Notes for Beginners
Nice — here’s a compact, friendly beginner’s guide to HTML (the language used to
build web pages). I’ll cover the essentials, show examples, and finish with a short
exercise you can try.
What is HTML?
HTML (HyperText Markup Language) describes the structure of web pages. It uses tags
(like <p> or <h1>) to mark up content. Browsers read HTML and display pages.
Basic file structure (HTML5 template)
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>My First Page</title>
</head>
<body>
<h1>Hello, world!</h1>
<p>This is my first HTML page.</p>
</body>
</html>
<!DOCTYPE html>: tells the browser to use HTML5.
<html lang="en">: root element; lang helps acce`ssibility and search engines.
<head>: metadata (title, charset, links to CSS, etc.).
<body>: visible content.