HTML table tag tutorial (32): cell horizontal alignment attribute ALIGN

HTML table tag tutorial (32): cell horizontal alignment attribute ALIGN

In the horizontal direction, you can set the cell alignment, which can be left, center, or right.
Basic syntax
<TD ALIGN="LEFT">
<TD ALIGN="CENTER">
<TD ALIGN="RIGHT">
Syntax
LEFT means left, CENTER means center, and RIGHT means right.
Document example: 10-30.htm
Sets the horizontal alignment of the cell.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-30.htm -->
03 <!-- File description: Set the cell to center alignment -->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the cell to center alignment</TITLE>
08 </HEAD>
09 <BODY>
10 <H1>Mainstream web design software</H1>
11 <TABLE BORDER=3 WIDTH=400 HEIGHT=100 Bordercolor=#336699 Background=10-8.jpg CellSpacing=10 CellPadding=25>
12 <TR>
13 <TD ALIGN="CENTER">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 13 defines the horizontal alignment of the cell as center.

<<:  Native JS to implement login box email prompt

>>:  TCP socket SYN queue and Accept queue difference analysis

Recommend

Detailed explanation of log processing of Docker containers

Docker has many log plug-ins. The default is to u...

Vue+Element realizes paging effect

This article example shares the specific code of ...

Supplementary article on front-end performance optimization

Preface I looked at the previously published arti...

Detailed steps to change the default password when installing MySQL in Ubuntu

Step 1: Enter the directory: cd /etc/mysql, view ...

Detailed explanation of the JVM series memory model

Table of contents 1. Memory model and runtime dat...

Solution to the long delay of MySQL database master-slave replication

Preface The delay of MySQL master-slave replicati...

Tips for using the docker inspect command

Description and Introduction Docker inspect is a ...

Three common uses of openlayers6 map overlay (popup window marker text)

Table of contents 1. Write in front 2. Overlay to...

Example sharing of anchor tag usage in HTML

Anchor tag usage: Linking to a specific location i...

Use vue2+elementui for hover prompts

Vue2+elementui's hover prompts are divided in...