1
1
10san2022-02-21 19:51:18
HTML
10san, 2022-02-21 19:51:18

Why is a table on an HTML page out of line?

Hello!
I'm learning HTML, and practicing, I got this problem:

First name Last name Middle name Date of birth Andrey Andreevich Andreev 10/09/1989

Here is the code:

<table border>
                <tr>
                    <th>Имя</th>
                    <th>Фамилия</th>
                    <th>Отчество</th>
                    <th>Дата рождения</th>

                    <td>Андрей</td>
                    <td>Андреевич</td>
                    <td>Андреев</td>
                    <td>09.10.1989</td>
                </tr>
            </table>


Please tell me what to do.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Deb4ik, 2022-02-21
@10san

Name Surname Surname Date of Birth
Andrei Andreevich Andreev 10/09/1989

Initial move:
<table border>
                <tr>
                    <th>Имя</th>
                    <th>Фамилия</th>
                    <th>Отчество</th>
                    <th>Дата рождения</th>
                </tr>
                <tr>
                    <td>Андрей</td>
                    <td>Андреевич</td>
                    <td>Андреев</td>
                    <td>09.10.1989</td>
                </tr>
</table>

A
Alexander Nesterov, 2022-02-21
@AlexNest

Read
htmlbook.ru/html/tr
htmlbook.ru/html/th

R
Rst0, 2022-02-21
@Rst0

<table border>
<thead>
                <tr>
                    <th>Имя</th>
                    <th>Фамилия</th>
                    <th>Отчество</th>
                    <th>Дата рождения</th>
      </tr>  
</thead>
<tbody>   
 <tr>
                    <td>Андрей</td>
                    <td>Андреевич</td>
                    <td>Андреев</td>
                    <td>09.10.1989</td>
                </tr>
</tbody>
            </table>

A
Alexander Vasiliev, 2022-02-22
@amvasiljev

Good afternoon.
There is only one in your code - tr(table row). If you want more lines, make more tr.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question