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

Markup: Elements, Attributes, and Values

Now that you’ve seen some HTML, let’s take a closer look at what constitutes markup.

HTML has three principal markup components: elements, attributes, and values. You’ve seen examples of each in our basic page.

Elements

Elements are like little labels that describe the different parts of a Web page: “This is a heading, that thing over there is a paragraph, and that group of links is navigation.” We discussed a few elements in the previous section. Some elements have one or more attributes, which further describe the purpose and content (if any) of the element.

Elements can contain text and other elements, or they can be empty. A non-empty element consists of a start tag (the element’s name and attributes, ...

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