Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

๐Ÿค– Artificial Intelligence
โ˜๏ธ Cloud and Infrastructure
๐Ÿ’พ Data and Databases
๐Ÿ’ผ Professional Skills
๐ŸŽฏ Programming and Development
๐Ÿ”’ Security and Networking
๐Ÿ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
ยฉ 2026 CheatGridโ„ข. All rights reserved.
Privacy PolicyTerms of UseAboutContact

HTML Cheat Sheet

HTML Cheat Sheet

Back to Web Development
Updated 2026-04-27
Next Topic: HTML5 Cheat Sheet

HTML (HyperText Markup Language) is the standard markup language for creating web pages and web applications, serving as the foundation of all content on the World Wide Web. Developed by Tim Berners-Lee in the early 1990s, HTML structures documents through elements (tags) that define everything from headings and paragraphs to forms and multimedia. While HTML provides the skeleton of web content, it works alongside CSS for presentation and JavaScript for behavior. Understanding HTML's semantic elements, attributes, and best practices is crucial: properly structured HTML improves accessibility (screen readers can navigate content meaningfully), SEO (search engines index semantic markup more effectively), and maintainability. The HTML Living Standard continues to evolve, with features like the Popover API, the <search> element, and native exclusive accordions reaching full browser support in 2024โ€“2025.

What This Cheat Sheet Covers

This topic spans 24 focused tables and 260 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Document StructureTable 2: Semantic Structure ElementsTable 3: Heading and Text ContentTable 4: Text Formatting ElementsTable 5: ListsTable 6: Links and NavigationTable 7: Images and MediaTable 8: TablesTable 9: FormsTable 10: Input TypesTable 11: Form Validation AttributesTable 12: Global AttributesTable 13: ARIA Attributes (Accessibility)Table 14: Link Relationship Types (rel)Table 15: Embedded ContentTable 16: Interactive ElementsTable 17: Scripting ElementsTable 18: Metadata ElementsTable 19: Character EntitiesTable 20: Event AttributesTable 21: Progress and MeasurementTable 22: Security and Resource AttributesTable 23: Microdata AttributesTable 24: Deprecated Elements (Legacy)

Table 1: Document Structure

ElementExampleDescription
<!DOCTYPE html>
<!DOCTYPE html>
โ€ข Declaration that defines document as HTML5
โ€ข must be the first line to trigger standards mode.
<html>
<html lang="en">
โ€ข Root element containing all other elements
โ€ข lang attribute specifies document language.
<head>
<head>
<meta charset="UTF-8">
</head>
Container for metadata โ€” includes title, scripts, stylesheets, and other non-visible elements.
<body>
<body>
<h1>Hello</h1>
</body>
Main content container โ€” all visible content goes inside body.
<title>
<title>Page Title</title>
โ€ข Document title displayed in browser tab
โ€ข crucial for SEO and bookmarks.

More in Web Development

  • Frontend State Management Beyond Redux Cheat Sheet
  • HTML5 Cheat Sheet
  • AngularJS Cheat Sheet
  • CSS Grid Layout Cheat Sheet
  • React Frontend Framework Cheat Sheet
  • SvelteKit Meta-Framework Cheat Sheet
View all 43 topics in Web Development