O'Reilly logo

Beginning HTML5 and CSS3 For Dummies by Chris Minnick, Ed Tittel

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

5

Text and Lists

In This Chapter

arrow Working with basic blocks of text

arrow Manipulating text blocks

arrow Creating bulleted, numbered, and definition lists

HTML documents include text, images, multimedia files, links, and other bits of content that you mold into a web page by using markup elements and attributes. You use blocks of text to create such things as headings, paragraphs, and lists. The first step in creating a solid HTML document is laying a firm foundation to establish the document’s structure.

Formatting Text

Here’s an ultratechnical definition of a block of text: some chunk of content that fills one or more lines inside an HTML element.

In fact, any HTML page is a collection of blocks of text:

check.png Every bit of content on your page must be part of some block element.

check.png Block elements usually end with a line break when rendered in a web browser.

check.png Every block element sits inside the <body> ...

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