title: What is the best way to add a title to a table?
body: <p>Which element should I use for titles of tables, <code>&lt;caption&gt;</code> or <code>&lt;th&gt;</code>?</p>
  
  <p>For example, I want to create this table :<br>
  <br><img src="https://i.stack.imgur.com/9nxeK.png" alt="enter image description here"></p>
  
  <p>What is better,</p>
  
  <pre><code>&lt;tr&gt;&lt;th colspan="2"&gt;Discographie&lt;/th&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;caption style="font-weight: bold"&gt;Discographie&lt;/caption&gt;
  </code></pre>
  
  <p>?</p>