HTML Guide

Introduction

HTML (HyperText Markup Language) is the foundation of every web page. It defines the structure and content of a document using elements.

Basic Structure

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

Common Elements

Semantic HTML5 Elements

<header>…</header>
<nav>…</nav>
<main>…</main>
<section>…</section>
<article>…</article>
<aside>…</aside>
<footer>…</footer>

Live Preview