Re: 'HTML 5' and some poem markup?

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!).


 - 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       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 5 October 2007 17:06:37 UTC