Show Menu
Cheatography

HTML Cheat Sheet (DRAFT) by

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

Block Elements

<na­v><­/na­v>
<h#­></­h#>
<se­cti­on>­</s­ect­ion>
<p>­</p>
<ar­tic­le>­</a­rti­cle>
<sp­an>­</s­pan>
<as­ide­></­asi­de>
<q>­</q>
<fo­ote­r><­/fo­ote­r>
<di­v><­/di­v>

Lists

<ol­></­ul>
<li­></­li>
<ul­></­ul>
<dl­></­dl>
<dt­></­dt>
 
<dd­></­dd>

Tables

<ta­ble­>/
Table
<tr­>/
New Row
<th­>/
Table Heading
<td­>/
Table Data
style=­"­bor­der­-co­llapse
Combine Borders, Gapless
 

Text Markup

<st­ron­g>/
Bold Text
<em­>/
Italicize
<ma­rk>/
Highlight Text
<de­l>/
Lineth­rough
<in­s>/
Underline
<su­b>/ and <su­p>/
Sub/Su­per­script
<q>/
Mark as a Quote
<bl­ock­quo­te>/
Large Quote, Usually Indented
<ad­dre­ss>/
Contact Inform­ation
<ci­te>/
Defines a Title

Meta Tags

<meta name="" conten­t="">
Syntax
name="d­esc­tip­tio­n"
Descri­ption
name="k­eyw­ord­s"
Key Words
name="a­uth­or"
Author
http-e­qui­v="r­efr­esh­"
Refresh every content seconds
 

Links

<link href="S­ome­thi­ng.c­ss­" rel="st­yle­she­et" type="t­ext­/cs­s"
CSS Stylesheet
<a href="">/
Link from content
<img src="" alt="">
Image
<a href="#­tex­t>/
Jump to "­tex­t"
<iframe src="">/
Display webpage within a webpage
target­:if­rame_a
Target iframe Named "­ifr­ame­_a"
target­:blank_
Opens in New Tab

Script­/Code

<sc­rip­t>/
Declares a Script

Forms

<fo­rm>/
Open/Close the Form
<input type="" name="">
Defines an Input
type="t­ext­"
Small Text Bot
type="r­adi­o" value=­"­"
Button Select Menu
type="s­ubm­it" value=­"­Sub­mit­"
Submits form