Skip to main content
FREE Mock interview & resume review with Sumit. Free right now, no payment needed.Book a slot

HTML Cheat Sheet — Quick Reference

Complete HTML Handbook

Beginner to Advanced — Tags, Forms, SEO, Accessibility & Interview Prep

138 tags150 interview Qs60 challenges
document
  • <!DOCTYPE html>
  • <html lang="en">
  • <head>
  • <body>
  • <title>
  • <meta charset="UTF-8">
  • <meta name="viewport" content="width=device-width, initial-scale=1">
text
  • <h1>–<h6>
  • <p>
  • <br>
  • <hr>
  • <strong>
  • <em>
  • <mark>
  • <code>
  • <pre>
links
  • <a href="">
  • <a href="mailto:">
  • <a href="tel:">
  • <nav>
lists
  • <ul>
  • <ol>
  • <li>
  • <dl>
  • <dt>
  • <dd>
media
  • <img alt="" loading="lazy">
  • <picture>
  • <source>
  • <video controls>
  • <audio controls>
tables
  • <table>
  • <caption>
  • <thead>
  • <tbody>
  • <tr>
  • <th scope="">
  • <td>
forms
  • <form>
  • <input>
  • <textarea>
  • <select>
  • <option>
  • <label>
  • <button type="submit">
  • <fieldset>
  • <legend>
semantic
  • <header>
  • <footer>
  • <main>
  • <article>
  • <section>
  • <aside>
interactive
  • <details>
  • <summary>
  • <dialog>
top Attributes
  • id
  • class
  • href
  • src
  • alt
  • type
  • name
  • value
  • required
  • aria-label
  • role
  • data-*