FAQ: Tables - Why Tables?

This community-built FAQ covers the “Why Tables?” exercise from the lesson “Tables”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Introduction to HTML

FAQs on the exercise Why Tables?

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

What is the class element and what do the different attributes do?

lets say we have 10 divs, and we want to style 5 of them, we can give these 5 divs classes so we can target them in css

different attributes allow us to customize different elements. What each attribute does, you can check in online documentation (MDN is good)

2 Likes

Can datafeeds fro tables created with HTML be from a backend database, e.g customer orders rather than inputed manually?

if the table contains input elements, then yes, depending on your back-end language you might need to give the input elements a name with value of array, for example:

<input type="text" name="email[]">

Why if I delete the CSS part in the head the image in the unordered list isn’t shown?

1 Like

For this exercise I was intrigued as to how to make the menu bar look the way it does. It looks different to the simple text menu in the last tutorial. Is that done using css?

Hey @timtamtom1, welcome to the forums!

Yes, the menu bar is made with CSS. If you haven’t learned that already, CSS is the way most developers use to style their webpages. Once you get to the Learn CSS course, you’ll learn how to develop nice-looking menu bars as well.

1 Like

Thanks @stevencopeland ! That is very helpful. How do I link the question to the forum of the specific exercise? Is it by using tags like ‘FAQ’?

Oh, you mean you wanted to post your topic on this topic instead?

Or am I misunderstanding…

Yeah. That is what I was trying to figure out.

I’ll transfer these replies on to the end of the that topic.

Is this better?

2 Likes

is it best practice to put img tags in ul tags as done here https://www.codecademy.com/paths/web-development/tracks/learn-html-web-dev-path/modules/learn-html-tables/lessons/html-tables/exercises/why-tables I cant find an answer on google.

Why is it link href to the css and not a href?

So on this exercise of Introduction to Tables, it is very important that the Cheatsheet is looked at and understood before proceeding further.

I looked at the Cheatsheet and modified the table.

I changed the elements to elements from the first column except the first row which the table header.

There was no change in the look of the table.

However, if we want to do certain calculation with the data of the table, then we would not be able to do that with the column that is having string data.

So it is important to use the correct table elements.

The href is linking to the CSS so as to provide the look of the Table. You would learn more about it when you start CSS. Do not worry. For now, I would advise you to understand what the different Table elements do and proceed.

in the first part of the lesson
https://www.codecademy.com/paths/learn-how-to-build-websites/tracks/build-websites-intro/modules/learn-html-tables/lessons/html-tables/exercises/why-tables

How is the header of the table blue in color?
Where was this color defined? Can we change this color from the code that we have?

i see there is a stylesheet linked:

<link href="style.css" type="text/css" rel="stylesheet">

but seems we can’t access the stylesheet. Maybe done so you can focus on html?

So normally, you would be able to change the color, but not in this exercise. I even tried using style attribute, but that didn’t work either.

1 Like