W3C specify this stuff. For tr
, you can find it here. Basically, only th
and td
elements can be direct contents of tr
.
If you want other stuff inside your table, it has to go inside the td
or th
elements. For example, td
can contain flow elements, including div
.
More Related Contents:
- Can multiple different HTML elements have the same ID if they’re different elements?
- Compiling dynamic HTML strings from database
- Why does my XPath query (scraping HTML tables) only work in Firebug, but not the application I’m developing?
- How can I scale the content of an iframe?
- Understanding offsetWidth, clientWidth, scrollWidth and -Height, respectively
- What characters are allowed in DOM IDs? [duplicate]
- Why does firebug add to ?
- What is DOM reflow?
- How to get a child element to show behind (lower z-index) than its parent?
- Why does a stray end tag generate an empty paragraph?
- How does Selenium click on elements that are 50% on screen and 50% not on screen?
- Angular2, what is the correct way to disable an anchor element?
- Why is a self-closing iframe tag preventing further DOM elements to be displayed?
- jQuery click function doesn’t work after ajax call? [duplicate]
- What is shadow root
- DOM mutation events replacement
- What are the CSS properties that get elements out of the normal flow?
- In the DOM are node ids case sensititve?
- How can I reuse HTML code across several HTML files
- Is it possible to put CSS @media rules inline?
- Difference between iframe, embed and object elements
- Using base tag on a page that contains SVG marker elements fails to render marker
- Get rid of space underneath inline-block image [duplicate]
- DOM parser that allows HTML5-style
- Draw Circle using css alone [duplicate]
- How to extract data from html table in shell script?
- SVG image inside circle
- HTML5 Canvas background image
- How to open native iOS app (calendar, notes…) from a link on website?
- Alignment of content vertically in adjacent flexbox containers