HTML5 Guidelines for Web Developers

(coco) #1
2.7 Text-Level Semantics—More New Tags 29

figure element can have only one figcaption element. It is up to the author
whether this is placed before or after the figure in question. A brief example with
markup and its browser implementation (see Figure 2.6) could look like this:



XXI: The World
VI: The Choice
XVIII: The Moon
Three magical sculptures in Niki de Saint
Phalles Giardino dei Tarocchi near Capalbio in the
Tuscany region of Italy. The tarot cards from left to right:
The World (XXI), The Choice (VI), and The Moon (XVIII)


Figure 2.6 Example of “figure” with “figcaption”


2.7 Text-Level Semantics—More New Tags


Apart from focusing on clear structures, the HTML5 specification also attaches
importance to semantics and tries to assign each element a certain meaning
on the text level. At the same time, the HTML5 specification determines in
which context the tag concerned can be used and in which it cannot. There are
some new elements and some that have disappeared completely (such as font,
center, and big), and the definitions of others have changed slightly. The fol-
lowing chapter will introduce new and changed elements. Later, in Table 2.2
we will show you the classical applications of all elements that appear in the

Free download pdf