Can Include (a Certain HTML element within another Certain HTML Element)

A single-serving website from Alexander Vishnyakov for testing if it’s valid to put any particular HTML element within another type of HTML element. Kinda neat to have a quick reference for this.

Some combinations feel fairly obvious: can you put …


The post Can Include (a Certain HTML element within another Certain HTML Element) appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.

A single-serving website from Alexander Vishnyakov for testing if it’s valid to put any particular HTML element within another type of HTML element. Kinda neat to have a quick reference for this.

Some combinations feel fairly obvious: can you put a <video> inside an <input>? Uh, no. Some are trickier: can you put a <div> inside an <h1>? Nope — that one bit me this week (derp). Some are a little confusing, like <div> is an invalid child of an <ol> but a valid child of a <dl>.

Direct Link to ArticlePermalink


The post Can Include (a Certain HTML element within another Certain HTML Element) appeared first on CSS-Tricks. You can support CSS-Tricks by being an MVP Supporter.


Print Share Comment Cite Upload Translate
APA
Chris Coyier | Sciencx (2024-03-29T06:36:58+00:00) » Can Include (a Certain HTML element within another Certain HTML Element). Retrieved from https://www.scien.cx/2021/10/22/can-include-a-certain-html-element-within-another-certain-html-element/.
MLA
" » Can Include (a Certain HTML element within another Certain HTML Element)." Chris Coyier | Sciencx - Friday October 22, 2021, https://www.scien.cx/2021/10/22/can-include-a-certain-html-element-within-another-certain-html-element/
HARVARD
Chris Coyier | Sciencx Friday October 22, 2021 » Can Include (a Certain HTML element within another Certain HTML Element)., viewed 2024-03-29T06:36:58+00:00,<https://www.scien.cx/2021/10/22/can-include-a-certain-html-element-within-another-certain-html-element/>
VANCOUVER
Chris Coyier | Sciencx - » Can Include (a Certain HTML element within another Certain HTML Element). [Internet]. [Accessed 2024-03-29T06:36:58+00:00]. Available from: https://www.scien.cx/2021/10/22/can-include-a-certain-html-element-within-another-certain-html-element/
CHICAGO
" » Can Include (a Certain HTML element within another Certain HTML Element)." Chris Coyier | Sciencx - Accessed 2024-03-29T06:36:58+00:00. https://www.scien.cx/2021/10/22/can-include-a-certain-html-element-within-another-certain-html-element/
IEEE
" » Can Include (a Certain HTML element within another Certain HTML Element)." Chris Coyier | Sciencx [Online]. Available: https://www.scien.cx/2021/10/22/can-include-a-certain-html-element-within-another-certain-html-element/. [Accessed: 2024-03-29T06:36:58+00:00]
rf:citation
» Can Include (a Certain HTML element within another Certain HTML Element) | Chris Coyier | Sciencx | https://www.scien.cx/2021/10/22/can-include-a-certain-html-element-within-another-certain-html-element/ | 2024-03-29T06:36:58+00:00
https://github.com/addpipe/simple-recorderjs-demo