Hello, please can anyone be kind enough to help me with assessment of Structuring Planet Data assignment? I have completed it and need to know my current competence level. Below is the link to my completed work.
When using <colgroup> you need to list all columns of the table to make the HTML valid. You can also use the span attribute on <col> to write fewer lines. This would be fine:
The top left cell should be a <td>. (It’s not a header.)
You don’t need in empty cells.
In such complex tables it would be good to use the scope attributes on all <th>. This will make it easier for screen reader to understand the table structure. For example:
It would be better to also use <th> on the names of the planets. Together with the scope from above every number in the table gets a meaning. For example, let’s look at the number “0.330”: The browser will then understand it as: 0.330 is the “Mass” of “Mercury” which is a “Terrestrial planet”.
I hope that helps. Please ask if something is unclear.
Overall good improvements, but one important thing is wrong. ids are not allowed to have whitespaces. For example:
id="Mass (10<sup>24</sup>kg)"id="mass"
id="Terrestrial planets"id="terrestrial"
This will also lead to shorter headers: e. g. headers="mass mercury terrestrial".
I prefer scope over id/headers, because you’ll have to write much less code. But that’s just my personal taste. The result of both methods, when implemented correctly, is the same.
As a general advice, you can paste your code into the W3C HTML validator to see if it’s valid HTML. Besides the wrong ids you will also see that the <style> element should go inside<head> (not between <head> and <body>).