Why i should use" <tbody>" when i can just put all my data inside the element <table>?

why i should use <tbody> when i can just put all my data inside the element <table>. I don’t understand the difference

https://www.codecademy.com/paths/front-end-engineer-career-path/tracks/fecp-22-fundamentals-of-html/modules/wdcp-22-learn-html-tables/lessons/html-tables/exercises/table-body

Using <tbody>, <thead> and <tfoot> give the table semantic meaning.

1 Like