124
Add Borders .........................................................
2 Within the existing h1
declaration, type border:.
1 In your editor, open a
document that contains
an embedded style sheet.
Add Borders
Y
ou can draw visual lines around elements using the CSS border property. To add a border, you
need to set its width, color, and style. These three properties can be set in any order. You can
also use border-top, border-bottom, border-left, or border-right to set individual
borders. Each of these takes the same three values as noted above: width, color, and style.
The width of the border can be set in any unit of measurement, but pixels are used most often. The
color can be any valid color name or a hexadecimal value. The style is set using one of ten keywords.