O'Reilly logo

Microsoft® HTML5 Step by Step by Faithe Wempen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 (<div>) tag to differentiate one area of the screen from another, as you will see in Chapter 11.

Specifying a Border Style

To select the line type for the border, use the border-style attribute along with one of the arguments listed in the table on the following page.

Argument

Example

solid

Specifying a Border Style

dotted

dashed

double

groove

ridge

inset

outset

none

To apply a border style to an individual instance ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required