Home > Software design >  Tables in CSS - advantages and disadvantages
Tables in CSS - advantages and disadvantages

Time:04-07

I'm working on some homework and I'm learning HTML and CSS. I'm learning to use HTML data tables and style them in CSS. If anyone wants to chime in I need to know some advantages and disadvantages of using tables in CSS when creating a website. Is there something else you would suggest besides tables? I've posted the assignment below.

Jim, a member of the ABC development team is tasked with developing a website for a client’s fitness center. He considers using a data table and CSS formatting to display the fitness center’s hours and fees on the website. However, some of the members disagree to the use of tables on a website and want to explore other options. Discuss the advantages and disadvantages of using a table and CSS formatting for displaying the fitness center’s hours and fees on the website. Research another option instead of a table for displaying the information. Give your recommendation to the team.

CodePudding user response:

The advantage using css when creating a table, the table will be better with some design and better load speed because css file and html file is seperate. And the disadvantage using css when creating a table is extra work for developer

CodePudding user response:

You can use: CSS grid, CSS Flex as an alternative.

  • These CSS properties are modern and give you more control on stylizing your table.

  • Also using modern properties you can make your page responsible for any screen size (which is important today, because alot of people use smartphones).

  • Also some modern CSS properties (for example: "border-radius") don't work well with "table", "tr", "td" etc. tags.

  • Using CSS grid, CSS Flex properties your HTML code will be smaller (less lines). Because you don't need to use tags like "tr" or "tbody".

Table tags might be useful sometimes. But these cases are rare.

  • Related