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

Alibaba Cloud Server Linux System Builds Tomcat to Deploy Web Project

I divide the whole process into four steps: Downl...

Analysis of the solution to Nginx Session sharing problem

This article mainly introduces the solution to th...

CSS to achieve particle dynamic button effect

Original link https://github.com/XboxYan/no… A bu...

Summary of five commands to check swap space in Linux

Preface Two types of swap space can be created un...

Ubuntu 16.04 mysql5.7.17 open remote port 3306

Enable remote access to MySQL By default, MySQL u...

A brief discussion on the role and working principle of key in Vue3

What is the function of this key attribute? Let’s...

The grid is your layout plan for the page

<br /> English original: http://desktoppub.a...

Summary of MySQL view principles and usage examples

This article summarizes the principles and usage ...

Methods and steps to build nginx file server based on docker

1. Create a new configuration file docker_nginx.c...

Common pitfalls of using React Hooks

React Hooks is a new feature introduced in React ...

CSS3 animation – steps function explained

When I was looking at some CSS3 animation source ...

Detailed explanation of Nginx http resource request limit (three methods)

Prerequisite: nginx needs to have the ngx_http_li...

Use Docker Compose to quickly deploy ELK (tested and effective)

Table of contents 1. Overview 1.1 Definition 1.2 ...

MySQL independent index and joint index selection

There is often a lack of understanding of multi-c...