Applying a Border to a Paragraph
You can apply a border style rule to almost any two-sided tag. Border style rules are used most commonly with regular paragraphs, but they also work with headings, lists, and even spans. You can also apply a border to a division to differentiate one area of the screen from another, as you will learn in Chapter 13.
Specifying a Border Style
To select the line type for the border, use the border-style
attribute with one of the arguments listed in the following table.
Argument |
Sample |
---|---|
|
|
|
|
| |
|
Get HTML and XHTML Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.