JSFiddle - React, Tailwind, and code Playground
HTML
<p>Following: A table with one row and NO <code>tbody</code> in the markup. If the background is orange (instead of white/clear), then your browser inserted a <code>tbody</code> into the DOM when none was in the source.</p>
<table id="experiment"><tr><td>Table cell contents.</td></tr></table>
CSS
body {
color: black;
background: white none;
font-family: helvetica, sans-serif;
}
p {
margin-bottom: 1.2em;
}
#experiment {
width: 100%;
}
#experiment td {
text-align: center;
padding: 0.6em;
}
#experiment tbody td {
background-color: #FC8;
}
#experiment td:after {
content: "\00A0 (No tbody.)";
display: inline;
}
#experiment tbody td:after {
content: "\00A0 (Inserted tbody.)";
}
JavaScript
//tbody behavior test.