Here is an HTML solution for you to add captions to your tables to match the captions feature (if only in appearance) of the captions in your PAT Word report.
Author(s)/Organisation/Publisher | xxxxxxxxxxxxxxxxxxxxxxxxxxx |
---|---|
Name of website | xxxxxxxxxxxxxxxxxxxxxxxxxx |
Name of webpage | $100 |
Date created/updated | xxxxxxxxxxxxxxxxxxxxxxxx |
Date accessed | 11 September 2020 |
URL | xxxxxxxxxxxxxxxxxxxxx |
The code below has one or two extra-curricular features in it. You know the border
& cellpadding
attributes, but the style
attribute is an inline CSS rule and the <thead>
and <tbody>
tags are not in the syllabus.
<table border="1" cellpadding="10" style="border-collapse: collapse;"> <caption>Source details table for Research Question 7</caption> <thead> <tr> <th>Author(s)/Organisation/Publisher</th> <td>xxxxxxxxxxxxxxxxxxxxxxxxxxx</td> </tr> </thead> <tbody> <tr> <th>Name of website</th> <td>xxxxxxxxxxxxxxxxxxxxxxxxxx</td> </tr> <tr> <th>Name of webpage</th> <td>$100</td> </tr> <tr> <th>Date created/updated</th> <td>xxxxxxxxxxxxxxxxxxxxxxxx</td> </tr> <tr> <th>Date accessed</th> <td>xxxxxxxxxxxxxxxxxxxxx</td> </tr> <tr> <th>URL</th> <td>xxxxxxxxxxxxxxxxxxxxx</td> </tr> </tbody> </table>
You can style the <caption>
tag and even though it must be inserted immediately after the <table>
tag, you can place it at the bottom using CSS:
Author(s)/Organisation/Publisher | xxxxxxxxxxxxxxxxxxxxxxxxxxx |
---|---|
Name of website | xxxxxxxxxxxxxxxxxxxxxxxxxx |
Name of webpage | $100 |
Date created/updated | xxxxxxxxxxxxxxxxxxxxxxxx |
Date accessed | 11 September 2020 |
URL | xxxxxxxxxxxxxxxxxxxxx |
<table border="1" cellpadding="10" style="border-collapse: collapse;"> <caption style="caption-side: bottom; text-align: right;">Source details table for Research Question 7</caption> <thead> <tr> <th>Author(s)/Organisation/Publisher</th> <td>xxxxxxxxxxxxxxxxxxxxxxxxxxx</td> </tr> </thead> <tbody> <tr> <th>Name of website</th> <td>xxxxxxxxxxxxxxxxxxxxxxxxxx</td> </tr> <tr> <th>Name of webpage</th> <td>$100</td> </tr> <tr> <th>Date created/updated</th> <td>xxxxxxxxxxxxxxxxxxxxxxxx</td> </tr> <tr> <th>Date accessed</th> <td>11 September 2020</td> </tr> <tr> <th>URL</th> <td>xxxxxxxxxxxxxxxxxxxxx</td> </tr> </tbody> </table>
https://www.w3schools.com/tags/tag_caption.asp