HTML table markup tutorial (10): cell padding attribute CELLPADDING

HTML table markup tutorial (10): cell padding attribute CELLPADDING

Cell padding is the distance between the cell content and the border.
Basic syntax
<TABLE Cellpadding=value>
Syntax explanation <br />Cell margins are measured in pixels.
Document example: 10-10.htm
Sets the cell margins for the table.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-10.htm -->
03 <!-- File Description: Set the cell margins of the table-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Setting the cell margins of a table</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 <TD>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 11 defines the table cell margins as 25 pixels.

<<:  How to deploy Go web applications using Docker

>>:  ElementUI implements sample code for drop-down options and multiple-select boxes

Recommend

Vue globally introduces scss (mixin)

Table of contents 1. mixin.scss 2. Single file us...

MySQL 5.7.23 decompression version installation tutorial with pictures and text

Download the MySQL installer Official download ad...

The core process of nodejs processing tcp connection

A few days ago, I exchanged some knowledge about ...

jQuery plugin to implement dashboard

The jquery plug-in implements the dashboard for y...

Detailed explanation of setting resource cache in nginx

I have always wanted to learn about caching. Afte...

JavaScript navigator.userAgent obtains browser information case explanation

The browser is probably the most familiar tool fo...

How to use html css to control div or table to be fixed in a specified position

CSS CodeCopy content to clipboard .bottomTable{ b...

Implementing a web calculator based on JavaScript

This article shares the specific code of JavaScri...

Problems with nodejs + koa + typescript integration and automatic restart

Table of contents Version Notes Create a project ...

Detailed explanation of the pitfalls of nginx proxy socket.io service

Table of contents Nginx proxies two socket.io ser...

A brief discussion on docker compose writing rules

This article does not introduce anything related ...

In-depth explanation of the global status of WeChat applet

Preface In WeChat applet, you can use globalData ...