Skip to content

Instantly share code, notes, and snippets.

@alysonla
Created April 6, 2013 06:48
Show Gist options
  • Save alysonla/5325162 to your computer and use it in GitHub Desktop.
Save alysonla/5325162 to your computer and use it in GitHub Desktop.
HTML Cheatsheet
<!DOCTYPE html>
<html> </html>
Making Comments:
<--! Make me into a comment -->
Font Size:
<p style = "font-size: 12px">
Font Color:
<h2 style="color:red">
Font Color & Size:
<h2 style="color: green; font-size:12px">
Font family:
<h2 style="font-family:Garamond">
Background color:
style="background-color: brown"
Aligning the text:
<h1 style="text-align:center">
Image tags:
<img src="website URL" />
Image that is clickable and links to a website:
<a href="website address for link"><img src="website address for picture" /></a>
or if you just a clickable line do "Word" before the </a>
Italics & bold:
<em> <strong>
Table tag:
<table>
Table Headers:
The table header (<thead>) contains the<th></th> tags and goes after the opening<table> tag but before the first table row.
Table row:
<tr></tr>
Table column (cell):
<td></td>
Colspan:
<th colspan="3">3 columns across!</th>
Divs:
< Allows you to divide your space into different containers
This will come in handy when we start to learn CSS: you'll be able to style different parts of the webpage individually />
<div></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment