CS110 HTML Reference

This document is a condensed version of this HTML 4 reference. It is modified under the terms of the Open Publication License, (the latest version is presently available at http://www.opencontent.org/openpub/). This derivative work is copyrighted by Scott D. Anderson, and is released under the Open Publication License. The changes are primarily to condense it, omitting tags not covered in CS110, and putting in typical attributes and values. Changes by Scott D. Anderson

Common Attributes

Essentially every tag supports the following common attributes:

Top-level Elements

Head Elements

Generic Block-level Elements

Lists

Tables

The following attributes apply to many of the tags below: CELLSPACING, CELLPADDING, WIDTH, and HEIGHT. All values are a length (in pixels) or a percentage. Another common attribute is BGCOLOR, whose value is a color. But it's usually better to use CSS.

Forms

Inline Elements

Character Entities

Non-ASCII characters can be included in the document by using entities, such as:

Character Entity Decimal Hex Rendering in Your Browser
Entity Decimal Hex
no-break space = non-breaking space            
inverted exclamation mark ¡ ¡ ¡ ¡ ¡ ¡
cent sign ¢ ¢ ¢ ¢ ¢ ¢
pound sign £ £ £ £ £ £
copyright sign © © © © © ©
registered sign = registered trade mark sign ® ® ® ® ® ®
degree sign ° ° ° ° ° °
plus-minus sign = plus-or-minus sign ± ± ± ± ± ±
superscript two = superscript digit two = squared ² ² ² ² ² ²
superscript three = superscript digit three = cubed ³ ³ ³ ³ ³ ³
micro sign µ µ µ µ µ µ
pilcrow sign = paragraph sign ¶ ¶ ¶
vulgar fraction one half = fraction one half ½ ½ ½ ½ ½ ½
inverted question mark = turned question mark ¿ ¿ ¿ ¿ ¿ ¿