Key Points

  • You can indent the first line of paragraphs by using the text-indent attribute.

  • The Padding attribute sets the amount of space between an element and its border; the margin attribute sets the amount of space around the outside of an element.

  • The Border-style attribute places a border around a paragraph. Use one of the following arguments: solid, dotted, dashed, double, groove, ridge, inset, outset, or none to specify the appearance of the border.

  • To set the width of a border, use the border-width attribute followed by the width in pixels (px).

  • To set the color of a border, use the border-color attribute followed by the color name or the RGB or hexadecimal notation of the color.

  • To format each side of a border individually, specify four arguments, ...

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.