Lesson 4: Fundamentals of HTML, XHTML, and CSS

In this lesson, you’ll discover the fundamentals of HTML, XHTML, and CSS.Together, these form the structure and style of your web pages.

What you’ll learn in this lesson:

• The structure of HTML

• The difference between HTML and XHTML

• The fundamentals of CSS

Starting up

You will work with several files from the web04lessons folder in this lesson. Make sure you have loaded the weblessons folder onto your hard-drive from www.digitalclassroombooks.com/webdesign. See “Loading lesson files” in the Starting Up section of this book.


See Lesson 4 in action!

Use the accompanying video to gain a better understanding of how to use some of the features shown in this lesson. You can find the video tutorial for this lesson at www.digitalclassroombooks.com using the URL provided when you registered your book.


We used the text editor Coda to create the markup in this lesson, but you can use any of the text editors covered in Lesson 3 to achieve the same results.

Web languages

In this lesson you will discover two languages: ...

Get Web Design with HTML and CSS Digital Classroom now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.