Home > Designing, Others > Can Include (a Certain HTML element within another Certain HTML Element)

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

October 22nd, 2021 Leave a comment Go to comments

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 inside an <input>? Uh, no. Some are trickier: can you put a

inside an

? Nope — that one bit me this week (derp). Some are a little confusing, like

is an invalid child of an

    but a valid child of a

    .

    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.

Categories: Designing, Others Tags:

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.