Which of the HTML samples defines a title of the table?
Explanation
The <caption> tag defines a table caption.
The <caption> tag must be inserted immediately after the <table> tag.

There is can be only one caption per table.
Tip: By default, a table caption will be center-aligned above a table. However, the CSS properties text-align and caption-side can be used to align and place the caption.

The code:


<table border='1' width=50%>
 <caption>Monthly income</caption>
 <tr> <th>Month</th> <th>Income</th> </tr>
 <tr> <td>January</td> <td>$1000</td> </tr>
</table>


Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з HTML & CSS
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести