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

Example of using #include file in html

There are two files a.htm and b.htm. In the same d...

A brief discussion on several ways to implement front-end JS sandbox

Table of contents Preface iframe implements sandb...

Detailed explanation of the usage of image tags in HTML

In HTML, the <img> tag is used to define an...

Pay attention to the use of HTML tags in web page creation

HTML has attempted to move away from presentation...

Detailed explanation of MySql view trigger stored procedure

view: When a temporary table is used repeatedly, ...

Introduction to root directory expansion under Linux system

1. Check Linux disk status df -lh The lsblk comma...

Summary of some related operations of Linux scheduled tasks

I have searched various major websites and tested...

Detailed introduction to CSS priority knowledge

Before talking about CSS priority, we need to und...

Implementation of Docker Compose multi-container deployment

Table of contents 1. WordPress deployment 1. Prep...

Steps to set up and mount shared folders on Windows host and Docker container

Programs in Docker containers often need to acces...

6 Ways to Elegantly Handle Objects in JavaScript

Table of contents Preface 1. Object.freeze() 2. O...

Detailed explanation of the use of the clip-path property in CSS

Use of clip-path polygon The value is composed of...

MySQL cursor detailed introduction

Table of contents 1. What is a cursor? 2. How to ...