HTML Attributes | CSS Properties | Notes |
---|---|---|
font face |
|
Use quotation marks only when there are spaces in the font-family name, e.g., font-family: Verdana, "Trebuchet MS", Tahoma; |
font size | font-size: 1em; |
Sizes can be set in ems, percents, pixels or with keywords such as small, medium and large. |
bold <b> |
|
When using bold text for decorative reasons, set it with When using bold text to indicate strong emphasis, use the |
italic <i> | font-style: italic; em |
When using italic text for decorative purposes, set it with font-style: italic. Oblique is also a font-style. When using italic text to indicate emphasis, use the Italics for citations such as book titles is created using the |
align="left" |
float: left; |
With CSS anything can be floated: images, paragraphs, divs, headings, tables, lists, etc. Keep in mind that a |
marginwidth="0" leftmargin="0" marginheight="0" topmargin="0" |
margin: 0; |
With CSS, When indenting a block level element, use |
vlink="#333399" alink="#000000" link="#3333FF" |
|
In HTML, link colors were set as an attribute of the body tag and applied uniformly to every link on the page. Using descendant selectors in CSS, link colors can be set to different values in different parts of a page. |
bgcolor="#FFFFFF" |
background-color: #fff; |
In CSS, background-color and/or background-image can apply to any element, including body, tables, headings, divs, forms, paragraphs, lists, or spans. |
bordercolor="#FFFFFF" |
border-color: #fff; |
Any element can have a border, the colors of which can be set individually for top, right, bottom and left if desired. |
border="3" |
border-width: 3px; |
With CSS, any element can have a When setting the borders for tables, use the When setting the spacing for tables, use the If you want a single border line between adjacent table cells, use
|
|
|
Many two and three column layouts use float to position elements on a page. If part of your presentation depends on background colors or images behind floated elements, you may want to use clear . |
cellpadding="3" |
padding: 3px; |
With CSS, any element can have padding . Padding can be set uniformly or individually for the top, right, bottom and left of any element. Padding is transparent, so background-color or background-image will shine through. |
li type="disc" li type="A" |
list-style-type: disc; list-style-type: upper alpha; |
The properties for list-style-type include disc, circle, square, decimal, upper-alpha, lower-alpha, upper-roman, lower-roman and several others, most notably none . |
align="center" |
|
Block elements such as paragraphs and divs can be centered using |
Technorati Tags: web design, CSS
Nice table, thanks