[whatwg] <p> elements containing other block-level elements

Anne van Kesteren fora at annevankesteren.nl
Fri Apr 8 01:53:29 PDT 2005


Matthew Thomas wrote:
>>> Lists should not be classified as block level or inline level
>>> elements within the spec.
>>
>> I think they should. (Note that block and inline are different here from
>> the definition CSS applies to them.) That way they get another content
>> model that might be more suited for inline situations.
>
> You mean perhaps a content model like this? <p>For this recipe you need 
> <ul><li>an egg</li>, <li>flour</li>, and <li>butter</li></ul>. Mix it 
> all together and so forth.</p>

'an' should be outside the LI element I guess and I'm not sure if this 
is the right approach but it looks cool. (Agreed that only a few would 
use it.)


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>




More information about the whatwg mailing list