HTML Cheat Sheet

Block-Level HTML Elements

<p> </p>
<hr />
<div> </div>
<script> </script>
<noscript> </noscript>
<address> </address>
<blockquote> </blockquote>
<pre> </pre>
<del> </del>
<ins> </ins>

Inline HTML Elements

<br />
<span> </span>
<b> </b>
<strong> </strong>
<i> </i>
<em> </em>
<big> </big>
<small> </small>
<tt> </tt>
<bdo dir="ltr"> </bdo>
<bdo dir="rtl"> </bdo>
<cite> </cite>
<del> </del>
<ins> </ins>
<q> </q>
<sub> </sub>
<sup> </sup>
<abbr title=""> </abbr>
<acronym title=""> </acronym>

Basic HTML Webpage

<!DOCTYPE html PUBLIC "" "">
<html>
<head>
</head>
<body>
</body>
</html>

HTML Head Tags

<title> </title>
<meta name="" content="" />
<link rel="shortcut icon" type="image/x-icon" href="" />
<link rel="stylesheet" type="text/css" href="" />
<script type="text/javascript"> </script>
<style type="text/css"> </style>

HTML Comment

<!-- Comment -->

Headings

<h1> </h1>
<h2> </h2>
<h3> </h3>
<h4> </h4>
<h5> </h5>
<h6> </h6>

HTML Image

<img src="" />

HTML Link

<a href=""> </a>

HTML Lists

Unordered List
<ul>
  <li>What is HTML?</li>
</ul>
Ordered List
<ol>
  <li></li>
</ol>
Definition List
<dl>
  <dt>Term</dt>
  <dd>Description</dd>
</dl>

HTML Table

<table> <tr>
  <th> </th>
  <th> </th>
</tr> <tr>
  <td> </td>
  <td> </td>
</tr> </table>

HTML Forms

<form action="" method="">
  <input type="text" name="" />
  <input type="password" />
  <input type="hidden" />
  <input type="submit" />
  <input type="reset" value="" />
  <input type="checkbox" />
  <input type="radio" />
  <textarea name=""> </textarea>
  <select name="">
    <option> </option>
  </select>
  <input type="file" name="" />
</form>

Music Code

<embed src="" />

Video Code

<embed src="" />