5
Text and Lists
In This Chapter
Working with basic blocks of text
Manipulating text blocks
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:
Every bit of content on your page must be part of some block element.
Block elements usually end with a line break when rendered in a web browser.
Every block element sits inside the <body> ...
Get Beginning HTML5 and CSS3 For Dummies 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.