HTML table markup tutorial (42): horizontal alignment attribute of the table header ALIGN

HTML table markup tutorial (42): horizontal alignment attribute of the table header ALIGN

In the horizontal direction, you can set the alignment of the table header, which can be left, center, or right.
Basic syntax
<TH ALIGN="LEFT">
<TH ALIGN="CENTER">
<TH ALIGN="RIGHT">
Syntax
LEFT means left, CENTER means center, and RIGHT means right.
File example: 10-40.htm
Set the horizontal alignment of the table header.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-40.htm -->
03 <!-- File description: Set the table header to center-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the table header to center</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 <TH ALIGN="CENTER">Web Graphics Software</TH><TH>Fireworks</TH>
14 </TR>
15 <TR>
16 TD>Web design 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 header as center.

<<:  A brief discussion on the VUE uni-app life cycle

>>:  Specific example of MySQL multi-table query

Recommend

How to use Vue to implement CSS transitions and animations

Table of contents 1. The difference between trans...

How to embed flash video format (flv, swf) files in html files

Flash file formats: .FLV and .SWF There are two ex...

jQuery clicks on the love effect

This article shares the specific code of jQuery&#...

A Preliminary Study on Vue Unit Testing

Table of contents Preface Why introduce unit test...

Why can't my tomcat start?

Table of contents Phenomenon: Port usage: Spellin...

How to purchase and initially build a server

I haven't worked with servers for a while. No...

Linux common text processing commands and vim text editor

Today, let's introduce several common text pr...

JS achieves five-star praise effect

Use JS to implement object-oriented methods to ac...

Linux uses NetworkManager to randomly generate your MAC address

Nowadays, whether you are on the sofa at home or ...

Summary of xhtml block level tags

* address - address * blockquote - block quote * c...

In-depth explanation of MySQL user account management and permission management

Preface The MySQL permission table is loaded into...

How to uninstall MySQL cleanly (tested and effective)

How to uninstall Mysql perfectly? Follow the step...

How to use JavaScript to implement sorting algorithms

Table of contents Bubble Sort Selection Sort Inse...