Day 1: Basic Structure & Headings
HTML Masterclass
Current Task
Objective
Welcome to Day 1! Today we will build the skeleton of an HTML document.
Step 1: Start with the <!DOCTYPE html> declaration.
Step 2: Wrap everything in an <html> tag.
Step 3: Inside, create a <head> containing a <title>My First Page</title>.
Step 4: Create a <body> and add an <h1> with "Welcome to Day 1" and an <h2> with "Subtitle".
index.html
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Welcome to Day 1</h1>
<h2>Subtitle</h2>
</body>
</html>
* Hint: Correct characters turn green, incorrect ones turn red.
Live Preview
🖼️
Verify your code to see the preview
← Previous
Next →