O'Reilly logo

HTML5 Foundations by Matthew West

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

appendix b

HTML Elements Index

This appendix contains a list of the most commonly used HTML elements with definitions and examples for each of these elements. Note that I cover only the basic attributes for each of the elements here. For an exhaustive list of elements and their attributes check out the HTML5 specifications that can be found here:

WHATWG Specification - http://developers.whatwg.org/

W3C Specification - http://www.w3.org/TR/html5/

Element

Definition

<a>

The <a> element is used for creating hyperlinks to other pages on the web or to a section in the current page. The location of the target page is specified in the href attribute. The anchor text between the tags will be shown to the user.<a href=”http://html5foundations.com”>HTML5 Foundations</a>

<abbr>

The <abbr> element is used to markup an abbreviation or acronym. An optional title attribute may be used to specify an expansion of the abbreviation.<abbr title=”World Wide Web Consortium”>W3C</abbr>

<address>

The <address> element should contain contact information for a section or page.<address> <a href=”mailto:matt.west@developercity.co.uk”> Email Matt </a></address>

<article>

The <article> element is used to define a section on a page that contains an independent piece of content such as a blog post or newspaper article.<article> <h1>Blog Post Title</h1> <p>Blog post content...</p></article>

<aside>

If the <aside> element is used within an <article> element, it should contain ...

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