Are tags such as <div>
, <form>
, <pre>
etc.. allowed inside a <span>
?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
According to the HTML Living Standard, the content model for SPAN elements is "Phrasing content".
Read about the SPAN element here.
Read about phrasing content here. This second link contains a full list of all the elements that can be put inside a SPAN element.
The
span
element is an inline element, which should contain only other inline elements and no block elements.From the spec:
The generic block-level grouping element is the
div
. The generic inline-level grouping element is thespan
.Again, from the spec: