Creating an Article

Another of the elements that’s new thanks to HTML5 is article Image. You’ve seen some examples of it in play already. Now let’s learn more about what makes it tick.

Image I’ve abbreviated the article contents and the nav code from the previous section to keep it simple. You can see the complete version of the page code on the book site at www.bruceontheloose.com/htmlcss/examples/. Although this example includes paragraphs and images only, an article can contain a variety of content types, such as video, figures, lists, and more.

...<body> ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.