The HTML 5 spec does not prohibit you from using the section
element inside of an aside
element. The aside
element is allowed to have flow content inside, and that includes the section
element.
However, even though the div
element is now, in HTML5, supposed to be the sectioning element of "last resort", using section
in this context goes against the intent of the element. From the spec we see:
Note: The section element is not a generic container element. When an element is needed only for styling purposes or as a convenience for scripting, authors are encouraged to use the div element instead. A general rule is that the section element is appropriate only if the element's contents would be listed explicitly in the document's outline.
Now, little "sections" of an aside are definitely not something that belong in the outline of the entire document, so the short answer to your question is to use div
. Alternatively, because your aside looks like it has four "items" inside, you might consider a ul
with four li
s and then style with the rule aside ul li
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…