HTML Cheat Sheet
1. Basic Structure
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
2. Text Formatting Tags
<h1> to <h6> - Headings
<p> - Paragraph
<b>, <strong> - Bold text
<i>, <em> - Italic text
<u> - Underline
<small> - Smaller text
<sub>, <sup> - Subscript/Superscript
<mark> - Highlighted text
3. Links and Images
<a href="url">Link text</a>
<img src="[Link]" alt="Description" width="500">
4. Lists
<ul> - Unordered list
<ol> - Ordered list
<li> - List item
5. Tables
<table>
<tr><th>Header</th><th>Header</th></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
6. Forms
HTML Cheat Sheet
<form action="[Link]" method="post">
<input type="text">
<input type="password">
<input type="submit">
</form>
7. Media Elements
<img>, <audio>, <video>, <iframe>
8. Semantic Tags
<header>, <footer>, <nav>, <main>,
<article>, <section>, <aside>
9. Div and Span
<div> - Block container
<span> - Inline container
10. Meta Tags
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11. Comments
<!-- This is a comment -->