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

solid

dotted

dashed

double ...

Get HTML and XHTML Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.