+ 5

"Each HTML element can belong to multiple content models" what does mean? 🤔

6th Jan 2018, 10:59 AM
Tran Huu Dang
Tran Huu Dang - avatar
2 Answers
+ 23
it means that elements may be block, inline or inline-block level. using css display for it
6th Jan 2018, 11:22 AM
Aleksej Donchuk
Aleksej Donchuk - avatar
+ 19
There are 7 content models: flow, metadata, phrasing, sectioning, embedded, heading, interactive. Most of elements belong to flow content model and some other model. For example, <audio> and <video> elements belong to flow, phrasing, embedded content models. So, HTML element can belong to several models simultaneously. About content models: http://www.w3.org/TR/2011/WD-html5-20110525/content-models.html
6th Jan 2018, 8:32 PM