# Structuring planet data - Learn web development | MDN

**URL:** <https://discourse.mozilla.org/t/structuring-planet-data-learn-web-development-mdn/101034>\
**Category:** Learn\
**Tags:** learning\
**Created:** [July 28, 2022, 11:09am UTC](https://discourse.mozilla.org/t/structuring-planet-data-learn-web-development-mdn/101034 "2022-07-28T11:09:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrushya](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/petrushya/32/64365_2.png) [@petrushya](https://discourse.mozilla.org/u/petrushya)\
**Post date:** [July 28, 2022, 11:09am UTC](https://discourse.mozilla.org/t/structuring-planet-data-learn-web-development-mdn/101034/1 "2022-07-28T11:09:50Z")

</div>

> **[Challenge: Structuring a planet data table - Learn web development | MDN](https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Structuring_content/Planet_data_table)**
>
> In this challenge, we provide you with some data on the planets in our solar system. Your job is to structure it into an accessible HTML table.

An assessment is required to structure the planet data made in two variants:

[option with “scope”](https://codepen.io/Petrushya/pen/JjLOdbx)

[option with “id”](https://codepen.io/Petrushya/pen/JjLOdNz)

I would be very grateful for an answer.

---

<div class="post-metadata">

**Author:** ![mikoMK](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/mikomk/32/50456_2.png) [@mikoMK](https://discourse.mozilla.org/u/mikoMK)\
**Post date:** [July 31, 2022, 9:22pm UTC](https://discourse.mozilla.org/t/structuring-planet-data-learn-web-development-mdn/101034/2 "2022-07-31T21:22:35Z")

</div>

Well done, @petrushya!

Here are my comments:

- Both versions: `<caption>` needs to be the first child of `<table>` to be valid HTML.
- Scope version: When you use `rowspan` you also need to change the `scope` to `rowgroup`.

Which version do you prefer?

Have a nice day,  
Michael

---

<div class="post-metadata">

**Author:** ![petrushya](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/petrushya/32/64365_2.png) [@petrushya](https://discourse.mozilla.org/u/petrushya)\
**Post date:** [August 1, 2022, 11:30am UTC](https://discourse.mozilla.org/t/structuring-planet-data-learn-web-development-mdn/101034/3 "2022-08-01T11:30:26Z")

</div>

Hi @mikoMK!

Thanks for the hints.  
The articles about “caption” and “colgroup” say the same thing:

> …just below the opening `<table>` tag.

Therefore, there was a misunderstanding.

Good luck.  
Pyotr
