Introduction
HTML is the structure of the web. You write elements (tags) that describe content.
Page anatomy
- <!DOCTYPE html> tells the browser to use standards mode.
- <html lang="en"> wraps the whole document.
- <head> contains metadata like <meta> and <title>.
- <body> contains what you see on the page.
Try it
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Intro Demo</title>
</head>
<body>
<h1>Hello, HTML!</h1>
<p>This is a minimal page.</p>
</body>
</html>