Skip to main content

Text Styles

  • Chapter
  • First Online:
Pro HTML5 with CSS, JavaScript, and Multimedia
  • 7385 Accesses

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Mark J. Collins

About this chapter

Cite this chapter

Collins, M.J. (2017). Text Styles. In: Pro HTML5 with CSS, JavaScript, and Multimedia. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2463-2_11

Download citation

Publish with us

Policies and ethics