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

Negative distance (empathy) - iterative process of mutual influence

Negative distance refers to empathy. Preface (rai...

Specific usage of textarea's disabled and readonly attributes

disabled definition and usage The disabled attrib...

How to install docker using YUM

As shown in the following figure: If the version ...

Detailed explanation of how to use the Vue date time picker component

This article example shares the specific code of ...

How to mount a disk in Linux

When using a virtual machine, you may find that t...

Steps to deploy ingress-nginx on k8s

Table of contents Preface 1. Deployment and Confi...

MySQL 8.0.12 installation and configuration method graphic tutorial (windows10)

This article records the installation graphic tut...

MySQL master-slave replication configuration process

Main library configuration 1. Configure mysql vim...

Example analysis of the principle and solution of MySQL sliding order problem

This article uses examples to explain the princip...

js to achieve a simple lottery function

This article shares the specific code of js to im...

9 Practical CSS Properties Web Front-end Developers Must Know

1. Rounded Corners Today's web designs are con...

Detailed explanation of jQuery method attributes

Table of contents 1. Introduction to jQuery 2. jQ...

Detailed explanation of the practical application of centos7 esxi6.7 template

1. Create a centos7.6 system and optimize the sys...