17.07.2013 Views

HTML CODE | CASCADING STYLE SHEETS (CSS) PROPERTIES ...

HTML CODE | CASCADING STYLE SHEETS (CSS) PROPERTIES ...

HTML CODE | CASCADING STYLE SHEETS (CSS) PROPERTIES ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IRONWOOD RIDGE HIGH SCHOOL CAREER AND TECHNICAL EDUCATION<br />

INFORMATION TECHNOLOGY FUNDAMENTALS<br />

<strong>HTML</strong> <strong>CODE</strong> | <strong>CASCADING</strong> <strong>STYLE</strong> <strong>SHEETS</strong> (<strong>CSS</strong>)<br />

<strong>PROPERTIES</strong> RELATED TO TEXT<br />

<strong>CSS</strong> FONT <strong>PROPERTIES</strong><br />

FONT PROPERTY DESCRIPTION<br />

font-style Sets the appearance of text as italic, oblique, or normal<br />

font-weight Sets the weight of the text as lighter, bold, bolder, or normal<br />

font-size Sets the size of text<br />

font-family Sets the typeface, such as serif or sans-serif<br />

font-variant Displays text in small caps or normal<br />

font A shortcut property that sets the values for several font properties all at once<br />

SETTING FONT SIZE IN <strong>HTML</strong> AND <strong>CSS</strong><br />

<strong>HTML</strong> HEADING SIZE POINT SIZE <strong>CSS</strong> KEYWORD<br />

n/a 36 xx-large<br />

1 24 x-large<br />

2 18 large<br />

3 14 medium<br />

4 12 small<br />

5 10 x-small<br />

6 8 xx-small<br />

GENERIC FONT NAMES FOR FONT FAMILIES<br />

GENERIC NAME POINT SIZE EXAMPLE<br />

serif<br />

Letter have strokes (or serifs) that finish the<br />

top or bottom of the letter form<br />

Times New Roman<br />

sans-serif Letter do not have finishing strokes Arial or Helvetica<br />

monospace Fixed-width letters Courier or Courier New<br />

fantasy Decorative letters Bodoni MT Black<br />

cursive Letters designed to look like handwritting Monotype Corsiva


IRONWOOD RIDGE HIGH SCHOOL CAREER AND TECHNICAL EDUCATION<br />

INFORMATION TECHNOLOGY FUNDAMENTALS<br />

<strong>HTML</strong> <strong>CODE</strong> | <strong>CASCADING</strong> <strong>STYLE</strong> <strong>SHEETS</strong> (<strong>CSS</strong>)<br />

<strong>PROPERTIES</strong> RELATED TO COLOR<br />

In <strong>HTML</strong> code, you can refer to colors in several ways – by name, RGB value, hexadecimal value, or<br />

“short hex” value. <strong>HTML</strong> uses 216 colors; however, of the 216, only 16 colors are considered to be<br />

“Web safe,” meaning that they are designed to be displayed the same.<br />

RGB VALUES | are based on the intensity of red, green, and blue. Each RGB letter is represented<br />

by a value from 0-255. The three RGB values are often referred to as RGB triplets.<br />

HEXADECIMAL VALUES | are used for colors to represent the intensity of the red, green, and blue.<br />

In hexadecimal, 00 is the lowest intensity and FF is the highest. The hexadecimal number is<br />

preceded by a flag character (#).<br />

DECIMAL AND HEXADECIMAL NUMBERS<br />

DECIMAL HEXADECIMAL<br />

0-9 (same)<br />

10 A<br />

11 B<br />

12 C<br />

13 D<br />

14 E<br />

15 F<br />

BROWSER-SAFE COLORS<br />

NAME RGB TRIPLET HEXADECIMAL VALUE SHORT HEX VALUE<br />

Aqua (0,255,255) #00FFFF #0FF<br />

Black (0,0,0) #000000 #000<br />

Blue (0,0,255) #0000FF #00F<br />

Fuchsia (255,0,255) #FF00FF #f0F<br />

Gray (128,128,128) #FF00FF<br />

Green (0,128,0) #008000<br />

Lime (0,255,0) #00FF00<br />

Maroon (128,0,0) #800000<br />

Navy (0,0,128) #FF00FF<br />

Olive (128,128,0) #808000<br />

Purple (128,0,128) #800080<br />

Red (255,0,0) #FF0000 #f00<br />

Silver (192,192,192) #C0C0C0<br />

Teal (0,128,128) #008080<br />

White (255,255,255) #FFFFFF<br />

Yellow (255,255,0) #FFFF00


IRONWOOD RIDGE HIGH SCHOOL CAREER AND TECHNICAL EDUCATION<br />

INFORMATION TECHNOLOGY FUNDAMENTALS<br />

<strong>HTML</strong> <strong>CODE</strong> | <strong>CASCADING</strong> <strong>STYLE</strong> <strong>SHEETS</strong> (<strong>CSS</strong>)<br />

MORE <strong>PROPERTIES</strong> RELATED TO TEXT<br />

TEXT <strong>PROPERTIES</strong> AND PSEUDO-ELEMENTS<br />

PROPERTY VALUES<br />

Color Any named color, RGB, or hexadecimal value<br />

line-height A number (1.0, 1.5, 2.0, etc.) or in em values<br />

letter-spacing Specify pts, ems, or as a percentage<br />

word-spacing Specify pts, ems, or as a percentage<br />

text-align Specify left, center, right, justify<br />

text-indent Specify pts, ems, or as a percentage<br />

text-transform Specify uppercase, capitalize, lowercase, normal<br />

text-decoration Specify overline or line-through<br />

:first-letter Use to set the style of the first letter of a word<br />

:first-line Use to set the style of the first line of a paragraph<br />

SOME POPULAR FILTERS<br />

FILTER DESCRIPTION<br />

Alpha Creates a gradient fill<br />

Blur Makes text appear out of focus<br />

Drop Shadow Casts a second separate shadow behind text<br />

Glow Creates an irregular-shaped, colored shadow behind text<br />

Shadow Creates a single shadow behind text<br />

Wave Bends text

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!