CHAPTER 3

Adding and Modifying Text

Are you ready to begin building your web page by adding text? You can add text by typing words into your HTML document and then surrounding the words with tags. You can create simple paragraphs with <p> tags and a hierarchy of different headings with a variety of heading tags. You can create lists using <ol> or <ul> tags in combination with the <li> tag. This chapter shows you how to do all of this and more, including how to add special characters to your page by typing alphanumeric codes.

image

Create a New Paragraph

Add a Line Break

Add a Line Break Opportunity

Add a Horizontal Rule

Insert a Blank Space

Make Text ...

Get Teach Yourself Visually™ HTML5 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.