O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Starting Your Web Page

At its most basic level, each of your HTML documents should contain the following components, as shown in Image:

• The DOCTYPE

• The html element (with the lang attribute, which is optional but recommended)

• The head element

• The character encoding in a meta element

• The title element (you’ll add its content in a bit)

• The body element

Image Here’s the foundation of every HTML page. The indentation doesn’t matter, but the structure is crucial. In this example, the default language (per the lang attribute) is set to en for English. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required