Loading…
Every website you visit — Google, YouTube, Wikipedia — is built with HTML at its core. HTML (HyperText Markup Language) is the standard language for structuring web content. In this exercise you will write a complete HTML page from scratch.
Every HTML document shares the same skeleton:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page Title</title>
</head>
<body>
<!-- visible content goes here -->
</body>
</html>
| Part | Purpose |
|---|---|
<!DOCTYPE html> | Tells the browser "this is a modern HTML5 page." Without it the browser may render things incorrectly. |
<html lang="en"> | The root element. The lang attribute helps screen readers pronounce words correctly and helps search engines know the page language. |
<head> | Invisible metadata: character encoding, the page title (shown in the browser tab), links to stylesheets, etc. |
<body> | Everything the user sees: headings, paragraphs, images, links, buttons, and more. |
Create a complete HTML page with:
<!DOCTYPE html> declaration on the very first line<html> element with the attribute lang="en"<head> containing <meta charset="UTF-8"> and a <title> of "My First Page"<body> with an <h1> heading that reads "Hello World"When you are done, your preview should display a large Hello World heading and the browser tab should read My First Page.