Markup from hell

A collection of bad practices in HTML, copied from real websites.

  1. #32 almost a proper close button

    submitted on by Manuel
    <button display="flex" role="button">
    <svg role="img" viewBox="0 0 13 13" aria-hidden="false" xmlns="http://www.w3.org/2000/svg" height="15px" width="15px" fill="#000" name="close">
    <title>Close dialog</title>
    <path d=""> </path>
    </svg>
    </button>

    Details and tips on how to fix the diabolic code of #32.

  2. #31 additional “assistance”

    submitted on by Stefania
    <a href="/contact" aria-label="If you find that you need additional 
    assistance in navigating or accessing the content of this website,
    please call our customer service toll free number 1-800-666-8654309" title="If
    you find that you need additional assistance in navigating or accessing
    the content of this website, please call our customer service
    toll free number 1-800-666-8654309"
    >

    Contact
    </a>
    <a href="/login" aria-label="If you find that you need additional assistance in navigating or accessing the content of this website, please call our customer service toll free number 1-800-666-8654309" title="If you find that you need additional assistance in navigating or accessing the content of this website, please call our customer service toll free number 1-800-666-8654309">
    Login
    </a>

    Details and tips on how to fix the diabolic code of #31.

  3. #30 Bullet “list”

    submitted on by Huy Ngo
    <p>
    • HTML
    <br>
    • CSS
    <br>
    • JavaScript
    </p>

    Details and tips on how to fix the diabolic code of #30.

  4. #29 Randomly grouping content

    submitted on by Manuel
    <section>
    <aside>
    <div>
    <section>
    <header>
    <a href="/">
    <img src="logo.svg" alt="Logo">
    </a>
    </header>
    <main>
    <a href="/services">Services</a>
    <a href="/products">Products</a>
    <a href="/aboutus">Aboutus</a>
    </main>
    <footer></footer>
    </section>
    </div>
    </aside>
    <section>
    <footer></footer>
    <main>
    <h1>Welcome to Hell</h1>
    </main>
    <footer></footer>
    </section>
    </section>

    Details and tips on how to fix the diabolic code of #29.

  5. #28 alert level 1

    submitted on by Manuel
    <h1 aria-busy="true" aria-live="polite" role="alert" class="sr-only">
    Done
    </h1>

    Details and tips on how to fix the diabolic code of #28.