HTML table markup tutorial (43): VALIGN attribute of the table header

HTML table markup tutorial (43): VALIGN attribute of the table header

In the vertical direction, you can set the alignment of the header, which can be top, center, or bottom.
Basic syntax
Syntax
Top means above, Middle means in the middle, and Bottom means below. File example: 10-41.htm
Set the vertical alignment of the table header.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-41.htm -->
03 <!-- File Description: Set the header to vertical alignment -->
04 <!-- ------------------------------ -->
05 <html>
06 <head>
07 <title>Set the vertical alignment of the header</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 valign="Top">Web Graphics Software</th><th>Fireworks</th>
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> The 13th line of the file description defines the vertical alignment of the table header as top.

<<:  A brief discussion on VUE uni-app conditional coding and page layout

>>:  Creation, constraints and deletion of foreign keys in MySQL

Recommend

Basic structure of HTML documents (basic knowledge of making web pages)

HTML operation principle: 1. Local operation: ope...

Typical cases of MySQL index failure

Table of contents Typical Cases Appendix: Common ...

React Hooks Common Use Scenarios (Summary)

Table of contents 1. State Hook 1. Basic usage 2....

Implementing carousel with native JavaScript

This article shares the specific code for impleme...

The final solution to Chrome's minimum font size limit of 12px

I believe that many users who make websites will ...

Linux kernel device driver proc file system notes

/***************** * proc file system************...

WHMCS V7.4.2 Graphical Installation Tutorial

1. Introduction WHMCS provides an all-in-one solu...

Detailed explanation of building MySQL master-slave environment with Docker

Preface This article records how I use docker-com...

Vue implements interface sliding effect

This article example shares the specific code of ...

Detailed explanation of how to create MySql scheduled tasks in navicat

Detailed explanation of creating MySql scheduled ...

About CSS floating and canceling floating

Definition of Float Sets the element out of the n...

JavaScript implements single linked list process analysis

Preface: To store multiple elements, arrays are t...

Implementation of Nginx load balancing cluster

(1) Experimental environment youxi1 192.168.5.101...

MySQL encryption and decryption examples

MySQL encryption and decryption examples Data enc...