HTML and CSS Reference
In-Depth Information
Creating a Table Caption
• To create a table caption, add the
caption
element directly below the opening
<table>
tag using the syntax
<caption>
content
</caption>
where
content
is the content of the table caption.
Add Kyle's suggested caption to the program schedule.
To create a caption for the program schedule:
◗
1.
Return to the
schedule.htm
file in your text editor and insert the following
caption
element directly below the opening tag, as shown in Figure 5-17:
<caption>All Times Central</caption>
Figure 5-17
Inserting a table caption
◗
2.
Save your changes to the file and refresh the
schedule.htm
file in your Web
browser. As shown in Figure 5-18, Kyle's suggested caption appears centered
above the Web table.