-- Learning is not just technology, but also dreams!
Home HTML JAVASCRIPT CSS VUE REACT PYTHON3 JAVA C C++ C# AI GO SQL LINUX VS CODE BOOTSTRAP GIT Local Bookmarks
HTML Reference Manual
HTML Tag List (Alphabetical Order)
HTML Tag List (Functional Order)
HTML Global Attributes
HTML Events
HTML Canvas
HTML Audio/Video
HTML Valid DOCTYPES
HTML Color Names
HTML Color Picker
HTML Color Mixer
HTML Emoji
HTML Character Sets
HTML ASCII
HTML ISO-8859-1
HTML Symbols
HTML URL Encoding
HTML Language Codes
HTML Country/Region Codes
HTTP Messages
HTTP Methods
Px/Em Conversion Tool
Keyboard Shortcuts
HTML Tags
<!-->
<!DOCTYPE>
<a>
<abbr>
<acronym>
<address>
<applet>
<area>
<article>
<aside>
<audio>
<b>
<base>
<basefont>
<bdi>
<bdo>
<big>
<blockquote>
<body>
<br>
<button>
<canvas>
<caption>
<center>
<cite>
<code>
<col>
<colgroup>
<command>
<datalist>
<dd>
<del>
<details>
<dfn>
<dialog>
<dir>
<div>
<dl>
<dt>
<em>
<embed>
<fieldset>
<figcaption>
<figure>
<font>
<footer>
<form>
<frame>
<frameset>
<head>
<header>
<hgroup>
<h1> - <h6>
<hr>
<i>
<iframe>
<img>
<input>
<ins>
<kbd>
<keygen>
<label>
<legend>
<li>
<link>
<main>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<html>
<picture>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<textarea>
< template>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt>
<u>
<ul>
<var>
<video>
<wbr>
HTML <tfoot> Tag
HTML <thead> Tag
In-depth Exploration
Web Browsers
Computer Science
Programming
Scripting Languages
Web Design and Development
Programming Languages
Web Service
Development Tools
Software
Web Services
HTML <th> width Attribute
HTML <th> Tag
Example
Table header cells with predefined width:
| Month | Savings |
|---|---|
| January | $100 |
| February | $80 |
Browser Support
All major browsers support the width attribute.
Definition and Usage
HTML5 does not support the <th> width attribute. Please use CSS instead.
In HTML 4.01, the width attribute for <th> is deprecated.
The width attribute specifies the width of a table header cell.
Usually, a cell occupies as much space as its contents require. The width attribute is used to set a predefined width for the cell.
Compatibility Note
In HTML 4.01, the width attribute for <th> is deprecated. Please use CSS instead.
CSS syntax: <th style="width:100px">
CSS Example: Setting the width of table header cells
In our CSS tutorial, you can find more details about the width attribute.
Syntax
<th width="pixels|%">
Attribute Values
| Value | Description |
|---|---|
| pixels | Sets the width value in pixels (e.g., width="50"). |
| % | Sets the width value as a percentage of the containing element (e.g., width="50%"). |
HTML <th> Tag
HTML <tfoot> Tag
HTML <thead> Tag
Coding Plans
Byte Ark Coding Plan
Supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, with official direct supply for stable and reliable service.
¥9.9/month
Subscribe Now
Xunfei Starry Sky Coding Plan
Includes free model call quota, DeepSeek, GLM, Kimi, MiniMax, one-stop experience and deployment platform.
¥3.9/month
Subscribe Now
Click to share notes
Category Navigation
Python / Data Science
AI / Intelligent Development
Frontend Development
Backend Development
Databases
Mobile Development
DevOps / Engineering
Programming Languages
Computer Fundamentals
XML / Web Service
.NET
Website Construction
Advertisement
HTML Tag Lists
HTML Tag List (Alphabetical Order)
HTML Tag List (Alphabetical Order)
HTML Tag List (Functional Order)
HTML Global Attributes
HTML Events
HTML Canvas
HTML Audio/Video
HTML Valid DOCTYPES
HTML Color Names
HTML Color Picker
HTML Color Mixer
HTML Emoji
HTML Character Sets
HTML ASCII
HTML ISO-8859-1
HTML Symbols
HTML URL Encoding
HTML Language Codes
HTML Country/Region Codes
HTTP Messages
HTTP Methods
Px/Em Conversion Tool
Keyboard Shortcuts
HTML Tags
Online Examples
·HTML Examples
·CSS Examples
·JavaScript Examples
·Ajax Examples
·jQuery Examples
·XML Examples
·Java Examples
Character Sets & Tools
· HTML Character Set Settings
· HTML ASCII Character Set
· JS Obfuscation/Encryption
· PNG/JPEG Image Compression
· HTML Color Picker
· JSON Formatter Tool
· Random Number Generator
Latest Updates
· docker compose ...
· GraphRAG Getting Started Tutorial
· Dart Enums and Symbols
· Dart Unit Testing
· Dart Concurrency and Iso...
· Dart Stream Flow
· Dart Asynchronous Programming
Site Information
· Feedback
· Disclaimer
· About Us
· Article Archives
Follow WeChat
My Collection
Mark Articles
Browsing History
Clear All
No records yet
YouTip