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

Use of environment variables in Docker and solutions to common problems

Preface Docker can configure environment variable...

Detailed explanation of for loop and double for loop in JavaScript

for loop The for loop loops through the elements ...

Docker dynamically exposes ports to containers

View the IP address of the Container docker inspe...

Raspberry Pi msmtp and mutt installation and configuration tutorial

1. Install mutt sudo apt-get install mutt 2. Inst...

Introduction to the use of MySQL performance stress benchmark tool sysbench

Table of contents 1. Introduction to sysbench #Pr...

How to implement Hover drop-down menu with CSS

As usual, today I will talk about a very practica...

Centos7.3 How to install and deploy Nginx and configure https

Installation Environment 1. gcc installation To i...

How to use MySQL DATEDIFF function to get the time interval between two dates

describe Returns the time interval between two da...

MySQL learning database search statement DQL Xiaobai chapter

Table of contents 1. Simple retrieval of data 2. ...

CSS uses BEM naming convention practice

When you see a class, what information do you wan...