© Mark J. Collins 2017

Mark J.  Collins, Pro HTML5 with CSS, JavaScript, and Multimedia, 10.1007/978-1-4842-2463-2_11

11. Text Styles

Mark J. Collins

(1)Chesterfield, Virginia, USA

In this Chapter I’ll demonstrate the CSS attributes that are available for styling the text portions of an HTML document. I’ll start with choosing the font and the various font characteristics and then the text formatting capabilities that you can use. I’ll cover spacing and alignment and ways to control line and page breaks. I’ll also explain a few miscellaneous topics such as color, opacity, and cursor, which are not specific to text formatting.

Fonts

The most basic factor when formatting text is choosing the font. There is a seemingly endless collection of available ...

Get Pro HTML5 with CSS, JavaScript, and Multimedia: Complete Website Development and Best Practices 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.