HTML table markup tutorial (16): title horizontal alignment attribute ALIGN

HTML table markup tutorial (16): title horizontal alignment attribute ALIGN

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

Recommend

Detailed explanation of flex layout in CSS

Flex layout is also called elastic layout. Any co...

vue3+ts+EsLint+Prettier standard code implementation

Table of contents use Use of EsLint Add a profile...

The process of using vxe-table to make editable tables in vue

There is a table in the project that needs to be ...

MYSQL unlock and lock table introduction

MySQL Lock Overview Compared with other databases...

Tips and precautions for using MySQL index

1. The role of index In general application syste...

Sample code for installing ASPNET.Core3.0 runtime in Linux

# The following examples are for x64-bit runtime ...

Summary of practical experience of HTML knowledge points

1. The table tag is table, tr is row, td is cell, ...

How to migrate local mysql to server database

We can use the scp command of Linux (scp cannot b...