Appendix
Quick Reference

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.

HTML5 Template

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

image

image

HTML Global Attributes

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.

image

HTML Tag-Specific Attributes

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.

image

image

image

image

image

image

image

HTML5 Tags

The following table lists the tags supported in HTML5 and their associated attributes.

image

image

image

image

image

image

image

image

image

image

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.26.221