This content originally appeared on CSS-Tricks and was authored by Chris Coyier
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 Article — Permalink
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.
This content originally appeared on CSS-Tricks and was authored by Chris Coyier
Chris Coyier | Sciencx (2021-10-22T17:57:30+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/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.