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

Div exceeds hidden text and hides the CSS code beyond the div part

Before hiding: After hiding: CSS: Copy code The co...

What is html file? How to open html file

HTML stands for Hypertext Markup Language. Nowada...

How to reset your Linux password if lost

1. The startup menu is to move the cursor to the ...

JavaScript implements page scrolling animation

Table of contents Create a layout Add CSS styles ...

Detailed explanation of CSS3 animation and new features of HTML5

1. CSS3 animation ☺CSS3 animations are much easie...

How to get the real path of the current script in Linux

1. Get the real path of the current script: #!/bi...

Three ways to configure Nginx virtual hosts (based on domain names)

Nginx supports three ways to configure virtual ho...

About Vue's 4 auxiliary functions of Vuex

Table of contents 1. Auxiliary functions 2. Examp...

Analysis of MySQL lock wait and deadlock problems

Table of contents Preface: 1. Understand lock wai...

Analysis of the Poor Performance Caused by Large Offset of LIMIT in MySQL Query

Preface We all know that MySQL query uses the sel...

HTML+CSS to achieve responsive card hover effect

Table of contents accomplish: Summarize: Not much...

Three examples of blur background effects using CSS3

Let’s not start with the introduction and get str...