Step 1: Environment Setup and Fundamentals
- Download and install a free code editor like Visual Studio Code from code.visualstudio.com.
- Create a new folder on your computer, e.g.,
html-practice, and inside it, create a file named index.html.
- Open the file in VS Code and write your first HTML document:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Page</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
- Save the file, double-click to open in your browser (Chrome/Firefox), and refresh to see changes.
Read MDN's Basic HTML syntax for elements, attributes, and structure.