In HTML5 each element belongs to zero or more categories. Each element has a content model defined by zero or more categories.
In SO there is a lot of questions like: Can I put element A inside element B.
My question is: How to effectively build a visual represention of the content model?
Is it possible to generate a graph from a subset of elements in a synthetic way understandable by HTML5 users?
--EDIT--
This the kind of graph I want to generate. The arrows means can-be-inside.
In some case, they will be conditions on arrows.
Conditions: (1) Transparent, but there must be no interactive content descendant.