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
Table of contents 1. Introduction to calculator f...
There are two files a.htm and b.htm. In the same d...
Table of contents Preface iframe implements sandb...
In HTML, the <img> tag is used to define an...
HTML has attempted to move away from presentation...
view: When a temporary table is used repeatedly, ...
1. Check Linux disk status df -lh The lsblk comma...
I have searched various major websites and tested...
Before talking about CSS priority, we need to und...
Table of contents 1. WordPress deployment 1. Prep...
VMWare (Virtual Machine ware) is a "virtual ...
Programs in Docker containers often need to acces...
Table of contents Preface 1. Object.freeze() 2. O...
Use of clip-path polygon The value is composed of...
Table of contents 1. What is a cursor? 2. How to ...