Back to HTML
Lesson 1 of 3

HTML Basics & Structure

Learn the fundamental building blocks of HTML

HTML Basics & Structure

HTML (HyperText Markup Language) is the skeleton of every web page. Let's learn the fundamentals!

Basic Document Structure

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>My Page</title>
  </head>
  <body>
    <h1>Hello World!</h1>
  </body>
</html>

Essential Elements

  • <html> - Root element
  • <head> - Meta information
  • <body> - Visible content
  • <h1>-<h6> - Headings
  • <p> - Paragraphs
  • <a> - Links
  • <img> - Images
Tip: Always use proper indentation to keep your code readable!