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

Key Takeaways

The basics of HTML and some key best practices provide the foundation for building effective Web sites. Let’s revisit the key takeaways:

• A Web page is primarily made up of three components: text content, references to other files, and markup.

• HTML markup is composed of elements, attributes, and values.

• It’s customary to write your HTML in all lowercase (DOCTYPE is an exception), surround your attribute values with quotes, and close empty elements with a space and a forward slash ( /).

• Always begin your HTML documents with the DOCTYPE declaration:

<!DOCTYPE html>

• A page’s content goes in the body element. Instructions primarily intended for the browser and search engines are before that, mostly in the head.

• Mark up your ...

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