HTML <caption> tag

HTML <caption> tag : Definition

• The HTML <caption> tag is used defines the caption (or <title>) of a table.

• The <caption> element should be the first child of its parent <table> element.

<caption> tag example :

<!DOCTYPE html>
table, th, td {
  border: 1px solid black;

<h1>The caption element example</h1>

  <caption>Monthly Incomes</caption>



The caption element example

Monthly Incomes

Month income
January $1200
February $1250