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> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access