Help wanted for Structuring planet data

Hello,

I am currently stuck on the very last step to add a border to the “Name” column on the Planets data table. I never learned CSS yet so I only tried what I’ve learned so far via MDN articles. I tried to style the column by doing:

I put this under and it does not work. I tried to do many research and cannot figure out what else to do.

Planets Data (code)

Assessment : Structuring Planet Data

Hi there @webluxdesigns, and welcome to the comunity! Thanks for sending in your code.

This is some great work — well done! You’ve got this looking pretty much perfect. The only two points to bring up are:

  1. You shouldn’t wrap the caption content in a <sub> element — this is intended for making subscripts, for example in scientific formulae like H2O (marked up using H<sub>2</sub>O). But in this case, you are just using to get a visual effect of small text. Instead, you should use CSS to give the caption the presentation you want it to have, and you’ll learn about CSS in good time.

  2. Adding a border on the name column — again, this makes some use of CSS, which I would rather have not included right now, but I needed to include a little bit of CSS to demonstrate usage of the <col> and <colgroup> elements. Have a look at https://developer.mozilla.org/en-US/docs/Learn/HTML/Tables/Basics#Providing_common_styling_to_columns. This section will give you what you need to know.

But apart from those minor issues, you did great.

1 Like

Thank so much for the feedback!! Got it to work! :grinning: