Show Menu
Cheatography

HTML5 Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Document Outline

<! DOCTYP­E>
Version of HTML
html
<ht­ml>
Document outline
xmlns
<he­ad>
Page inform­ation
<bo­dy>
Page content

Comm­ent

<!-- Comment -->
Insert comment

Page Inform­ation

<ti­tle>
Document title
<st­yle>
Style inform­ationmedia | type
<base />
Base url for all relative URLs in a document
href | target
<link />
Link between document & external resources
crossorigin | href | hreflang | media | rel | sizes | type
<meta />
Meta data
charset | content | http-equiv | name
<sc­rip­t>
Client­-side script
async | charset | defer | src | type
<noscript>
Alternate content for users that do not support client­-side script