The appendix is designed as a quick reference for all of HTML5 and earlier versions. You will find a barebones HTML5 template, HTML attribute definitions, and HTML tag definitions. This appendix is intended to summarize the HTML5 landscape and provide quick facts at a glance.
All HTML documents start from the same humble beginnings. You can save yourself some time by creating and using a template with your standard layout. Code Listing A-1 shows a template that my students develop over the course of our class.
Code Listing A-1 A simple HTML5 template
Global attributes are shared by every HTML tag. For Boolean attributes, HTML5 supports simply listing the tag as setting a true value; omission suggests false. If you want to set a value or are using XML style syntax (XHTML5), you should use the syntax and set attribute="attribute".
The following table lists the attributes in HTML5. Not all of these attributes are covered in this book, but each has its use.
The following table defines the attributes used by some tags supported by HTML5. Not all tags will support all of these attributes. See the table in the next section to determine which tags support an attribute.
The following table lists the tags supported in HTML5 and their associated attributes.