WEB BASICS · FIRST PAGE
MDN's HTML lesson: make your first web page by hand
MDN Web Docs · HTML: Creating the content
MDN's lesson "HTML: Creating the content" shows you how to write your first index.html by hand. You make a first-website folder with an images folder inside it. You build a page with a heading, an image and a list. You check each step in a web browser.
The lesson is part of MDN's "Your first website" module. The module says it assumes no earlier knowledge of web technologies. But you should be comfortable with your computer's files and folders. You also need a code editor and web browsers installed. You start by creating index.html inside a first-website folder and pasting in a short starter page. Next you put your own image in an images folder and point the img element's src at it. You replace the alt text with a real description. Then you add an h1 heading, paragraphs, a list and a link. The lesson notes that leaving out https:// can give unexpected results. Our suggestion: stop when your page shows its heading, image, list and working link, before moving on to styling.
- Starts with an index.html file inside a first-website folder
- Covers headings, paragraphs, images with alt text, lists and links
- Expects a code editor and a web browser; no prior web knowledge
- Next lessons in the module cover CSS, JavaScript and publishing
Open MDN's HTML: Creating the content lesson
Source: MDN Web Docs (Mozilla) · HTML: Creating the content · checked 2026-11-11