Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is this I hear about the table tag being deprecated?

Because that might mess me up, somewhat. I'm not entirely clear on what I'm supposed to use to replicate some of its functionality effectively, should I adopt a newer standard down the road.

I can't seem to find good information sources to verify this, though. Would there be a good reason for this?

like image 752
Hamster Avatar asked Jul 05 '10 02:07

Hamster


People also ask

What does it mean when a tag has been deprecated?

Deprecated. A deprecated element or attribute is one that has been outdated by newer constructs. Deprecated elements are defined in the reference manual in appropriate locations, but are clearly marked as deprecated. Deprecated elements may become obsolete in future versions of HTML.

What happens when a HTML tag is deprecated?

Generally, "deprecated" means something disapproved. In IT, deprecated elements are those elements that are allowed, but not recommended and are being replaced by newer ones. So, a "deprecated code" means that it is not recommended to use as there is a better alternative in that software to use instead.

Can you use deprecated HTML tags Why or why not?

Using deprecated functionality intentionally is a bad practice because, in the case of HTML, at any given time a browser can choose to stop supporting the deprecated functionality. That leaves your code broken and in need of maintenance.


2 Answers

It is definitely not being depreciated. I also thought I heard this, however, it was simply a statement implying that the table tag is not as effective as the div tag in terms of layouts as table columns do not drop down when the screen size is reduced.

One thing that I am very concerned about, is that we are yet to have a similar html element that can act as a table, but collapse down like a div in smaller screens without any css. This would really save time as the only thing one would need to declare is the width of each column, and not have to write too much css for column positioning (blocks, inline-block etc).

like image 92
Peter Mokhothu Avatar answered Nov 18 '22 07:11

Peter Mokhothu


The <table> tag is most certainly not deprecated. The thing is, you must (well, should) only use it for tabular data. It was and sometimes still is being abused for layout purposes, which is extremely bad practice for a variety of reasons, and CSS is the preferred technology to use there.

like image 20
deceze Avatar answered Nov 18 '22 07:11

deceze