Chapter 5. Working with Fonts, Text Blocks, and Lists

WHAT YOU’LL LEARN IN THIS CHAPTER:

• How to use boldface, italics, and special text formatting

• How to tweak the font

• How to use special characters

• How to align text on a page

• How to use the three types of HTML lists

• How to place lists within lists

In the early days of the Web, text was displayed in only one font and in one size. However, a combination of HTML and CSS now makes it possible to control the appearance of text (font type, size, or color) and how it is aligned and displayed on a web page. In this chapter, you’ll learn how to change the visual display of the font—its font family, size, and weight—and how to incorporate boldface, italics, superscripts, subscripts, and ...

Get Sams Teach Yourself HTML, CSS and JavaScript All in One 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.