Thuta Learning
BasicWeb Developmentbeginner

Basic Structure

Relax. We'll talk through this in plain words — no textbook voice.

The standard structure of an HTML file includes the main parts <!DOCTYPE html>, <html>, <head>, <body>.

  • <!DOCTYPE html> — tells the browser this file is modern HTML5.
  • <head> — where you put settings the user doesn't see, like the title, meta tags, and CSS links.
  • <body> — where the actual content the user sees goes.
html
<!DOCTYPE html>
<html lang="my">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>My First Page</title>
</head>
<body>
  <h1>My First Heading</h1>
  <p>My first paragraph.</p>
</body>
</html>
You should see
The title should appear in the browser tab, and a heading with a paragraph should appear on the page.