Style Guide

HTML

Elements are all lower case.

Most elements should be closed

Exceptions:

hr - horizontal rule


Images don't need to be closed either.

Attribute values

for example, the address in an url should be in quotes. Same for address of an image.

Images

styling

cat

Set the width and height

It is ok to use auto for the height, percentages are my preference for the width

Coding

= signs

Don't use spaces around = signs

Good:

Good:

<img src="smokey.jpg" alt="cat">

Bad:

<img src = "smokey.jpg" alt = "cat">

Where to find the escape characters:

HTML Entities

Title

Always include the title tag in the head section

the other title is an attribute, not a tag, and is a tool tip

Page Structure

Always include html, head, and body tags

Include the lang attribute in the header. We use "en-us"