Codecademy Cheat Sheet

Element

Tag

Description

< >

Where the opening tag goes

</ >

Where the closing tag goes

Content

What goes between the opening and closing tags

Tables

Tag

Description

<table>

Starting tag for table

<thead>

Starting tag for the header of a table

<tablebody>

Starting tag of a table body

<tr>

Starting tag for a table row

<td>

Starting tag for table data

Fundamentals of CSS

Selector

Description

CSS Usage

p

In this case p is the selector, but it can be h1, head, etc.

p { }

*

* is a universal selector. Effects everything on the page

*{ }

Class

If an html element has a class, ie: <p> class='brand'>Sole Shoe Company </p> you can select that in CSS with a period

.brand { }

ID

If an HTML element needs to be styled uniquely, we can give it an ID using theĀ idĀ attribute.
<h1 id='large-title'>

`#large-title { }`