HTML (HyperText Markup Language) is the backbone of every website. It structures the web content using elements defined by tags. Here’s a concise cheatsheet to help you get started:
<meta name="description" content="Learn HTML basics with this cheatsheet">
<meta name="author" content="Abdul Mateen">
<meta name="keywords" content="HTML, Cheatsheet, Web Development">
Semantic Tags
Use these for better accessibility and SEO:
Tag
Description
Example
<header>
Defines a header section
<header>Title Here</header>
<footer>
Footer content
<footer>Contact Info</footer>
<article>
Independent content
<article>Blog Post</article>
<section>
Thematic grouping
<section>Section Content</section>
<nav>
Navigation links
<nav><a href="#">Home</a></nav>
HTML5 Input Types
HTML5 introduces new input types for forms:
Type
Example
text
<input type="text">
email
<input type="email">
password
<input type="password">
number
<input type="number">
date
<input type="date">
range
<input type="range" min="0" max="100">
Bonus Tips
Always close tags properly.
Indent nested elements for readability.
Use the alt attribute for images to improve accessibility.