3

in this page: enter link description here

there isn't any <tbody> in the HTML under this table:

<table class="reference notranslate"> 
<tr>
<th align="left" width="20%">Attribute</th>
<th align="left" width="20%">Value</th>
<th align="left" width="60%">Description</th>
</tr>
...

but when I use inspect elements in Google Chrome or Mozilla Firefox there is a tbody element in this table over the first <tr>. enter image description here

why this happens?

Aidin.T
  • 731
  • 3
  • 10
  • 25

1 Answers1

8

This is because <tbody> is an expected element inside of a <table> Chrome puts it there because it belongs. It'll happen just the same if you open an html file with nothing inside of it. Chrome and (most other browsers) will automatically but the <html>, <head> and <body> tags. Check this question out for more information.

Community
  • 1
  • 1
rfoo
  • 1,160
  • 1
  • 12
  • 27