Chapter 3. Adding Text and More
In this lesson, you will learn how to use HTML to add text and headings in your Web pages. You’ll also learn how to add mathematical notations, information about your Web page, and special characters (such as ampersands).
Paragraphs
You might not realize it, but you already learned how to create an HTML paragraph in Lesson 2, “Creating Your First Page.” In HTML, a paragraph is created whenever you insert text between the <p>
tags. Look at the code from Lesson 2 again:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>My XHTML Page</title> </head> <body> <p>This is ...
Get Sams Teach Yourself HTML in 10 Minutes, Fourth Edition 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.