Basic Structure
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
Common Tags
- <h1> to <h6>: Headings
- <p>: Paragraph
- <a href="URL">: Anchor/Link
- <img src="URL" alt="description">: Image
- <ul>, <ol>, <li>: Lists (unordered, ordered)
- <div> and <span>: Containers
- <form>, <input>, <button>: Forms and Inputs
HTML5 Semantic Elements
- <header>, <footer>, <nav>: Layout
- <section>, <article>, <aside>: Content Structure
- <main>, <figure>, <figcaption>: Main Content and Media