HTML table tag tutorial (11): horizontal alignment attribute ALIGN

HTML table tag tutorial (11): horizontal alignment attribute ALIGN

In the horizontal direction, you can set the alignment of the table, which can be left, center, or right.
Basic syntax
<TABLE ALIGN="LEFT">
<TABLE ALIGN="CENTER">
<TABLE ALIGN="RIGHT">
Syntax
LEFT means left, CENTER means center, and RIGHT means right.
File example: 10-11.htm
Sets the horizontal alignment of the table.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-11.htm -->
03 <!-- File description: Set the table to center alignment -->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the table 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 ALIGN="CENTER">
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 the horizontal alignment of the table as center.

<<:  ElementUI implements sample code for drop-down options and multiple-select boxes

>>:  How to get the maximum or minimum value of a row in sql

Recommend

Native js to realize bouncing ball

On a whim, I wrote a case study of a small ball b...

How to migrate the data directory in Docker

Table of contents View Disk Usage Disk Cleanup (D...

A brief discussion on when MySQL uses internal temporary tables

union execution For ease of analysis, use the fol...

Very practical Tomcat startup script implementation method

Preface There is a scenario where, for the sake o...

Chinese website user experience rankings

<br />User experience is increasingly valued...

A brief analysis of the differences between undo, redo and binlog in MySQL

Table of contents Preface 【undo log】 【redo log】 【...

Let’s talk about the symbol data type in ES6 in detail

Table of contents Symbol Data Type The reason why...

ReactRouter implementation

ReactRouter implementation ReactRouter is the cor...

How to disable ads in the terminal welcome message in Ubuntu Server

If you are using the latest Ubuntu Server version...

XHTML introductory tutorial: text formatting and special characters

<br />This section introduces how to impleme...

JavaScript destructuring assignment detailed explanation

Table of contents concept Array Destructuring Dec...