« Previous
Next »
HTML HOME
HTML is the markup language of the web. Every page you see started as HTML that the browser parsed, styled with CSS, and made interactive with JavaScript.
A minimal HTML5 page
EXAMPLE
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8' />
<meta name='viewport' content='width=device-width, initial-scale=1' />
<title>My first page</title>
<meta name='description' content='A tiny HTML5 example.' />
</head>
<body>
<header>
<h1>Hello, web</h1>
<nav>
<a href='#about'>About</a>
<a href='#contact'>Contact</a>
</nav>
</header>
<main>
<article>
<h2>Why HTML matters</h2>
<p>HTML gives content structure and meaning. Browsers, screen readers, and search engines all read it.</p>
</article>
</main>
<footer>
<small>© 2026 You.</small>
</footer>
</body>
</html>
Why it matters
Always start with , set a charset, set a viewport, and use semantic elements (header, main, footer, article, nav). These four habits get you halfway to a fast, accessible, SEO-friendly page.
Tip: Tweak the snippet with Try it Yourself », then sit the quiz at the bottom of the page.
Example
Example
<!DOCTYPE html>
<html>
<head>
<title>HTML HOME</title>
</head>
<body>
<h1>HTML HOME</h1>
<p>This is a demo page for the "HTML HOME" lesson.</p>
</body>
</html>
Try it Yourself »
Exercise
Name the green button that opens the live editor on every lesson page.
Click:
It is the standard call-to-action.
Test yourself
« Previous
Next »
Discussion
Loading…