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

Example code of setting label style using CSS selector

CSS Selectors Setting style on the html tag can s...

Draw an iPhone based on CSS3

Result:Implementation Code html <div class=...

How to modify the master-slave replication options in MySQL online

Preface: The most commonly used architecture of M...

Native js to realize a simple snake game

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

Detailed explanation of the interaction between React Native and IOS

Table of contents Prerequisites RN passes value t...

Detailed explanation of meta tags (the role of meta tags)

No matter how wonderful your personal website is,...

How to use CSS3 to implement a queue animation similar to online live broadcast

A friend in the group asked a question before, th...

A brief discussion on event-driven development in JS and Nodejs

Table of contents Event-driven and publish-subscr...

Detailed tutorial on installing CUDA9.0 on Ubuntu16.04

Preface: This article is based on the experience ...

7 skills that web designers must have

Web design is both a science and an art. Web desi...

Write your HTML like this to make your code more compatible

For example, users who need screen reading softwar...

How to check if a table exists in MySQL and then delete it in batches

1. I searched for a long time on the Internet but...

Detailed explanation and examples of database account password encryption

Detailed explanation and examples of database acc...