Should I use tables when creating tables in HTML / CSS

I have an initial question for web development. I am going to create a table in which I have input fields that I will send to the server.

What is common practice for this? Should I use html tables or do I need to create tables using style sheets to position and calibrate cells, columns, etc.? If both are common practice, what are the pros and cons of using eithor from them?

+3
source share
5 answers

If the content is tabular in nature, logically structured in rows and columns, then the corresponding tags — tags that describe the structure of the content — are table tags.

+10
source

You will have people on both sides, and some will be better than others. In fact, you use tables for tabular data, not for layout of your buttons, logos, etc.

On the other hand, I have an old asp Classic code in which we used tables everywhere, and it still works great.

If I did this today, I would use a “semantically correct” design where I could, which means tables for tabular data (things displayed in a row and column) and css material for layouts.

+1
source

divs . .

0

, , , , . , .

, , CSS, , .

, , CSS .

, , divs span , HTML. , .

, - w3 CSS. 3 , .

0
source

My motto for html / css is: Msgstr "Use the correct tag for the job." If his table allows her to be a table :)

0
source

Source: https://habr.com/ru/post/1776785/


All Articles