HTML table markup tutorial (41): width and height attributes of the table header WIDTH, HEIGHT

HTML table markup tutorial (41): width and height attributes of the table header WIDTH, HEIGHT

By default, the width and height of the header are automatically adjusted according to the content. We can also manually set the width and height of the header.
Basic syntax
<TH WIDTH=value HEIGHT=value>
Syntax explanation <br />The width of the header is defined by attributes, and the height of the header is defined by attributes, in pixels or percentages.
File example: 10-39.htm
Set the width and height of the header.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-39.htm -->
03 <!-- File Description: Set the width and height of the header-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the width and height of the header</TITLE>
08 </HEAD>
09 <BODY>
10 <H1>Mainstream web design software</H1>
11 <TABLE BORDER=1 WIDTH=400 HEIGHT=100>
12 <TR>
13 <TH WIDTH=300 height=50>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>
File Description <br />Line 11 defines the table's width as 400 pixels and its height as 100 pixels. Line 13 defines the width of the header to be 300 pixels and the height to be 50 pixels.

<<:  Detailed steps to enable SourceGuardian (sg11) encryption component on Linux virtual hosts

>>:  Vue.js implements the nine-grid image display module

Recommend

MySQL DATE_ADD and ADDDATE functions add a specified time interval to a date

MySQL DATE_ADD(date,INTERVAL expr type) and ADDDA...

Significantly optimize the size of PNG images with CSS mask (recommended)

This article is welcome to be shared and aggregat...

js to achieve drag and drop sorting details

Table of contents 1. Introduction 2. Implementati...

Usage and description of HTML tag tbody

The tbody element should be used in conjunction wi...

Several ways to easily traverse object properties in JS

Table of contents 1. Self-enumerable properties 2...

Deep understanding of the use of ::before/:before and ::after/:after

Part 1: Basics 1. Unlike pseudo-classes such as :...

Examples of correct judgment methods for data types in JS

Table of contents Preface Can typeof correctly de...

Perfect solution for theme switching based on Css Variable (recommended)

When receiving this requirement, Baidu found many...

Detailed explanation of several methods of installing software in Linux

1. RPM package installation steps: 1. Find the co...

Nginx learning how to build a file hotlink protection service example

Preface Everyone knows that many sites now charge...

mysql IS NULL using index case explanation

Introduction The use of is null, is not null, and...

Detailed explanation of monitoring NVIDIA GPU usage under Linux

When using TensorFlow for deep learning, insuffic...

Avoid abusing this to read data in data in Vue

Table of contents Preface 1. The process of using...