Is <table> semantic for displaying phone, email, and fax?

Is the following code semantic using an HTML table?

<table>
    <tbody>
    <tr>
        <th>Phone</th>
        <td>+1234567</td>
    </tr>
    <tr>
        <th>Email</th>
        <td><a href="mailto:name@example.com">name@example.com</a></td>
    </tr>
    <tr>
        <th>Fax</th>
        <td>+1234568</td>
    </tr>
    </tbody>
</table>

Unformatted, it will look like this:

enter image description here

It seems to me that this is tabular data. (Thus, not just for layout - although the side effect is that it helps to have equal columns.)

+5
source share
2 answers

If you put your contact in <table>solely for layout purposes, then you better use the CSS style <dl>. Identifiers will be in <dt>and data in <dd>s.

, <table> . <th> <td> .

+4

- , .

, , . , , CSS.

, .

+4

All Articles