0% found this document useful (0 votes)
6 views2 pages

HTML Cheat Sheet

This HTML cheat sheet provides a concise overview of basic HTML structure, text formatting tags, links, images, lists, tables, forms, media elements, semantic tags, div and span usage, meta tags, and comments. It includes examples for each category to illustrate proper syntax and usage. This resource is useful for quick reference when coding in HTML.

Uploaded by

Jayajeet Manoj
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

HTML Cheat Sheet

This HTML cheat sheet provides a concise overview of basic HTML structure, text formatting tags, links, images, lists, tables, forms, media elements, semantic tags, div and span usage, meta tags, and comments. It includes examples for each category to illustrate proper syntax and usage. This resource is useful for quick reference when coding in HTML.

Uploaded by

Jayajeet Manoj
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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 -->

You might also like