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 ... |
Get HTML5 Foundations now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.