By default, the table title is horizontally centered. We can set the horizontal alignment of the title text through the ALIGN attribute. Basic syntax <Caption ALIGN="LEFT">…</Caption> <Caption ALIGN="CENTER">…</Caption> <Caption ALIGN="RIGHT">…</Caption> Syntax LEFT means left, CENTER means center, and RIGHT means right. Document example: 10-15.htm The horizontal alignment of the table caption is set by the ALIGN attribute of the <CAPTION> tag. 01 <!-- ------------------------------ --> 02 <!-- File example: 10-15.htm --> 03 <!--File Description: Set the horizontal alignment of the table title--> 04 <!-- ------------------------------ --> 05 <HTML> 06 <HEAD> 07 <TITLE>Set the horizontal alignment of the table title</TITLE> 08 </HEAD> 09 <BODY> 10 <TABLE BORDER=3 WIDTH=400 HEIGHT=100 Bordercolor=#336699 ALIGN="CENTER"> 11 <CAPTION ALIGN="RIGHT">Mainstream web design software</CAPTION> 12 <TR> 13 <TD>Web Graphics Software</TD><TD>Fireworks</TD> 14 </TR> 15 <TR> 16 <TD>Web page creation software</TD><TD>Dreamweaver</TD> 17 </TR> 18 <TR> 19 <TD>Web animation software</TD><TD>Flash</TD> 20 </TR> 21 </TABLE> 22 </BODY> 23 </HTML> File Description <br />Line 11 defines that the table title text is right-aligned. |
<<: JavaScript adds event listeners to event delegation in batches. Detailed process
>>: Detailed explanation of the usage of MySQL memory tables and temporary tables
1. Subquery MySQL 4.1 and above support subquerie...
A few days ago, I wrote an article about using CS...
In the front-end design draft, you can often see ...
Flex layout is also called elastic layout. Any co...
Table of contents 1. Background of the problem: 2...
1 QPS calculation (number of queries per second) ...
Table of contents use Use of EsLint Add a profile...
There is a table in the project that needs to be ...
MySQL Lock Overview Compared with other databases...
1. The role of index In general application syste...
# The following examples are for x64-bit runtime ...
1. The table tag is table, tr is row, td is cell, ...
We can use the scp command of Linux (scp cannot b...
Recently, when working on mobile pages, inline-bl...
By default, the width and height of the header ar...