Term
|
Definition
| Always start each page with a DOCTYPE, but following that, the HTML element must be on top. |
|
|
Term
|
Definition
| Only the head and body elements can go directly inside your html element. This means every other element must go in either the head or body elements. |
|
|
Term
|
Definition
| Always give your head element a title element. |
|
|
Term
|
Definition
| You can put only block elelemnts directly inside your body element. All inline elements and text need to a block element before they go in the body element. |
|
|
Term
|
Definition
| The only things you can put in an inline element are text and other inline elements. Block elements are not allowed. |
|
|
Term
|
Definition
| Keep block elements out of your p tags. Paragraphs are for text and inline elements. |
|
|
Term
|
Definition
| Lists are for list items. Only the li element is allowed in the ul and ol elements. |
|
|
Term
|
Definition
| You can put text, inline elements, or block elements inside your list items, but make sure you add li tags. |
|
|
Term
|
Definition
| The blockquote tag only likes block elements. Always put your text and inline elements inside block elements before adding them to blockquote. |
|
|
Term
|
Definition
| Even though you can nest just about any inline element in another, never nest an a element inside another element. Empty elements like img provide no way to nest other inline elements within them. |
|
|