W3C home > Mailing lists > Public > public-html@w3.org > October 2007

Re: 'HTML 5' and some poem markup?

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 5 Oct 2007 17:06:25 +0000 (UTC)
To: "Dr. Olaf Hoffmann" <Dr.O.Hoffmann@gmx.de>
Cc: public-html@w3.org
Message-ID: <Pine.LNX.4.62.0710051655520.4889@hixie.dreamhostps.com>

On Fri, 5 Oct 2007, Dr. Olaf Hoffmann wrote:
> 
> What I missed so many years in (X)HTML is some useful markup for poems.

HTML5 actually defines how to mark up poems in HTML (the word "poem" is in 
the spec half a dozen times, in fact!).

Specifically:

 - the heading of a poem is marked up using <header> and the 
   appropriate level of <hX> elements,

 - the stanzas of poems written in the classical form are given by <p> 
   elements, with line breaks indicated by <br> elements (one of the few 
   allowed uses of <br>).

 - the stanzas of freeform poems are given by <pre> elements.

There is an example of a part of a classical poem in the <img> element 
section (search for "On either side the river lie").

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 5 October 2007 17:06:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:08 GMT