HTML Review

HTML elements

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>PAGE TITLE</title>
  </head>
  <body>
  PAGE CONTENT
  </body>
</html>

Semantic Markup

Block and inline elements

Paragraphs and Headings

Unordered Lists

Ordered Lists

Description Lists

Elements for Organizing Page Content (HTML5)

Inline Text Elements

Generic Elements

HTML Special Characters

Character Named Entity Numeric Entity
&nbsp; &#160;
& &amp; &#038;
< &lt; &#060;
> &gt; &#062;

Images

Tables

Table Example

<table>
  <tr>
    <th>Column 1</th>
    <th>Column 2</th>
    <th>Column 3</th>
  <tr>
  <tr>
    <td>Row 1 Column 1 Data</td>
    <td>Row 1 Column 2 Data</td>
    <td>Row 1 Column 3 Data</td>
  <tr>
  <tr>
    <td>Row 2 Column 1 Data</td>
    <td>Row 2 Column 2 Data</td>
    <td>Row 2 Column 3 Data</td>
  <tr>
</table>

Spanning Table Cells

<table>
  <tr>
    <th colspan="2">Two Columns</th>
  <tr>
  <tr>
    <td>Row 1 Column 1 Data</td>
    <td>Row 1 Column 2 Data</td>
  <tr>
</table>

Forms

Form Controls

Text Entry

Submit and Reset Buttons

Radio Buttons

<input type="radio" name="x" value="1" checked>
<input type="radio" name="x" value="2">
<input type="radio" name="x" value="3">
<input type="radio" name="x" value="4">

Checkbox Buttons

<input type="checkbox" name="x[]" value="1">
<input type="checkbox" name="x[]" value="2">
<input type="checkbox" name="x[]" value="3">
<input type="checkbox" name="x[]" value="4">