November 2011
Intermediate to advanced
384 pages
13h 23m
English
Chapter 2 discusses the new HTML5 semantic layout tag, <figure>, which enables you to define a standalone image, table, or code as a self-contained, supporting object that complements the document. Using the new figcaption element, you can add caption text.
Place the <figcaption> tag either above or below the supporting object within the <figure> group. Insert your caption text within:
<figure> [image, table, code, etc.] <figcaption>Caption Text</figcaption> </figure>
Most HTML5 web browsers will not preformat figure or figcaption elements. This means that they will appear as text following an image when viewed by the browser. You should use figure and figcaption CSS selectors to add some display properties to your ...
Read now
Unlock full access