When opening an HTML file (or cutting and pasting from a HTML file opened in the browser) with the <caption>
tag the caption style is not being applied - the text is styled ‘Default Paragraph Body’. How do I get the paragraph to be styled “Caption” or “Caption - Table”?
For instance this code:
<table>
<caption>Were you satisfied with your children’s diet before the pandemic? (out of those who reported having children)</caption>
<thead>
<tr class="header">
<th style="text-align: left;"></th>
<th style="text-align: right;">Dehradun</th>
<th style="text-align: right;">Delhi</th>
<th style="text-align: right;">Hills of Uttarakhand</th>
<th style="text-align: right;">Tamil Nadu</th>
<th style="text-align: right;">All</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">No</td>
<td style="text-align: right;">2.97</td>
<td style="text-align: right;">26.39</td>
<td style="text-align: right;">15.67</td>
<td style="text-align: right;">27.46</td>
<td style="text-align: right;">16.53</td>
</tr>
<tr class="even">
<td style="text-align: left;">Yes</td>
<td style="text-align: right;">97.03</td>
<td style="text-align: right;">73.61</td>
<td style="text-align: right;">84.33</td>
<td style="text-align: right;">72.54</td>
<td style="text-align: right;">83.47</td>
</tr>
</tbody>
</table>
Does not produce a caption in the document. Why is this happening, and is there a workaround?