Markup from hell
A collection of bad practices in HTML, copied from real websites.
- #9 Cookie Consent from Hellsubmitted on by Manuelskip code sample- <body>
 <header>…</header>
 <main>…</main>
 <footer>…</footer>
 <div class="cookie_consent modal">
 <p>We use cookies…</p>
 <div class="cookie_consent__close">
 <i class="fa fa-times"></i>
 </div>
 <div class="cookie_consent__ok">OK</div>
 </div>
 </body>
- #8 anchor tag used as buttonsubmitted on by Svenskip code sample- <a href="#" onclick="modal.open()">Login</a>
- #7 multiple duplicate ids and table layoutsubmitted on by Dirty-Co.deskip code sample- <table>
 <tr id="body">
 <td id="body">
 <table id="body">
 <tr id="body_row">
 <td id="body_left">…</td>
 <td id="body_middle">…</td>
 <td id="body_right">…</td>
 </tr>
 </table>
 </td>
 </tr>
 </table>
- #6 link with void operator as href valuesubmitted on by Sarahskip code sample- <a href="javascript:void(1)" onClick='window.location="index.html"'>Link</a>
- #5 button-like-linksubmitted on by Vadimskip code sample- <a href="#form" role="button" aria-haspopup="true">   Register   </a>