<!DOCTYPE html>
<html>
<head>
<meta charset=”UTF-8″>
<title>Page Title</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a sample paragraph.</p>
</body>
</html>
<!DOCTYPE html>
- Declares the document type.
- Tells the browser that this is an HTML5 document
.<html>
- Root element of the HTML document.
- Everything goes inside this tag.
<head>
- Contains meta-information about the document (not displayed on the page
<title>
- Sets the title shown on the browser tab.
<body>
- Contains all the visible content of the webpage (headings, paragraphs, images, etc.)
Content Tags Inside <body>
- <h1> to <h6>: Headings
- <p>: Paragraphs
- <a>: Links
- <img>: Images