Why do most people want to avoid tables in HTML and use the DIV for everything?

This is what makes me crazy every time I see it. Why are elements divalmost obsessed?

I understand why in markup basically div, everyone with idor (even better) a classNamecan help develop clean markup and maintain control over visual changes.

But, for example, I continue to see questions about how to make divs behave like a table, and even when they are told that something will not be compatible with the browser version x or y, they will still want to do something like this:

<div style="display: table">
    <div style="display: table-row">
        <div style="display: table-cell">Content</div>
        <div style="display: table-cell">Content</div>
    </div>
    <div style="display: table-row">
        <div style="display: table-cell">Content</div>
        <div style="display: table-cell">Content</div>
    </div>
</div>

Why? ... really: why?

Why is it better than using table? Or why using tables is something disgusting?

HTML. - . , ( , div, ). : !

... div ? HTML/CSS , - ?

table s. div HTML, h1.. h6, span s ..

??

+5
2

, divs, , , , .

, . , . ​​, , .

, divs , , , , .

, . .

+3

, divs , ​​:

<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
0
source

All Articles