![]() |
New Perspectives on HTML5 and CSS3, 8th Edition Tutorial 4 |
To add a border to a block-level element, apply the following
border style:
border: width style color
where width sets the border width, style defines the style of the border,
and color sets the border color using a color value or color name.
Use the web form below to generate the CSS code for applying a border to the preview box.