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.


Change the Font Size

Indent Text

Change the Color of Text

Change the Font

Change Text Alignment

Change the Text Case

Control Line Spacing ...

Get Teach Yourself Visually™ HTML5 now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.