HTML table tag tutorial (33): cell vertical alignment attribute VALIGN

HTML table tag tutorial (33): cell vertical alignment attribute VALIGN

In the vertical direction, you can set the cell alignment, which can be top, center, or bottom.
Basic syntax
<TD VLIGN="TOP">
<TD VLIGN="MIDDLE">
<TD VLIGN="MOTTOM">
Syntax
TOP means on the top, MIDDLE means in the middle, and MOTTOM means at the bottom.
File example: 10-31.htm
Sets the vertical alignment of the cell.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-31.htm -->
03 <!-- File description: Set the vertical alignment of the cell -->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Setting cell vertical alignment</TITLE>
08 </HEAD>
09 <BODY>
10 <H1>Mainstream web design software</H1>
11 <TABLE BORDER=3 WIDTH=400 HEIGHT=200 Bordercolor=#336699 Background=10-8.jpg>
12 <TR>
13 <TD VALIGN="Top">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 vertical alignment of the cell as top.

<<:  Some questions about hyperlinks

>>:  Vue implements a simple shopping cart example

Recommend

Native js to implement drop-down menu

Drop-down menus are also very common in real life...

Summary of MySQL common functions

Preface: The MySQL database provides a wide range...

express project file directory description and detailed function description

app.js: startup file, or entry file package.json:...

CocosCreator Typescript makes Tetris game

Table of contents 1. Introduction 2. Several key ...

Detailed explanation of the integer data type tinyint in MySQL

Table of contents 1.1Tinyint Type Description 1.2...

Analysis and solution of MySQL connection throwing Authentication Failed error

[Problem description] On the application side, th...

Several common methods for setting anchor positioning in HTML

There are several ways I know of to set anchor pos...

Detailed discussion of MySQL stored procedures and stored functions

1 Stored Procedure 1.1 What is a stored procedure...

Explanation of several ways to run Tomcat under Linux

Starting and shutting down Tomcat under Linux In ...

Detailed tutorial on installing mysql 8.0.13 (rpm) on Centos7

yum or rpm? The yum installation method is very c...

How to change the host name in Linux

1. View the current host name [root@fangjian ~]# ...

Detailed explanation of NodeJS modularity

Table of contents 1. Introduction 2. Main text 2....

How to bind Docker container to external IP and port

Docker allows network services to be provided by ...

Example of implementing dynamic verification code on a page using JavaScript

introduction: Nowadays, many dynamic verification...

Using JS to implement a simple calculator

Use JS to complete a simple calculator for your r...