Lesson 4. Learning the Basics of HTML

In the first three lessons, you learned about the World Wide Web, how to organize and plan your websites, and why you need to use HTML to create a web page. In Lesson 3, “Introducing HTML and XHTML,” you even created your first simple web page. In this lesson, you learn about each of the basic HTML tags in more depth and begin writing web pages with headings, paragraphs, and several different types of lists. We focus on the following topics and HTML tags:

• Tags for overall page structure: <html>, <head>, and <body>

• Tags for titles, headings, and paragraphs: <title>, <h1> through <h6>, and <p>

• Tags for comments: <!--...-->

Structuring Your HTML

HTML defines three tags that describe the page’s overall ...

Get Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day: Includes New HTML5 Coverage, Sixth 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.