O'Reilly logo

Teach Yourself Visually™ HTML5 by Mike Wooldridge

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

CHAPTER 5

Styling Text

Ready to add some pizzazz to the words and paragraphs on your web page? This chapter shows you how to apply formatting to your HTML5 text using style sheet rules. You can emphasize words on your page by making the words capitalized or a different size. By adding color, either to the words themselves or as a background, you can make elements on your page stand out or match your website's theme. You can also use style sheet rules to change the alignment and spacing of the text on your page.

image

Change the Font Size

Indent Text

Change the Color of Text

Change the Font

Change Text Alignment

Change the Text Case

Control Line Spacing ...

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