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

How to optimize MySQL index function based on Explain keyword

EXPLAIN shows how MySQL uses indexes to process s...

Detailed explanation of object literals in JS

Table of contents Preface 1. Set the prototype on...

Discussion on image path issues in css (same package/different package)

In CSS files, sometimes you need to use background...

SpringBoot integrates Activiti7 implementation code

After the official release of Activiti7, it has f...

MySQL uses events to complete scheduled tasks

Events can specify the execution of SQL code once...

Docker installation Nginx tutorial implementation illustration

Let’s install Nginx and try it out. Please note t...

Complete steps to quickly configure HugePages under Linux system

Preface Regarding HugePages and Oracle database o...

Vue implements page caching function

This article example shares the specific code of ...

JavaScript canvas to achieve code rain effect

This article shares the specific code for canvas ...

js code to realize multi-person chat room

This article example shares the specific code of ...

Solve the cross-domain problem of Vue+SpringBoot+Shiro

Table of contents 1. Configure Vue front end 1. D...

How to get the current time using time(NULL) function and localtime() in Linux

time(); function Function prototype: time_t time(...

Example code for implementing the wavy water ball effect using CSS

Today I learned a new CSS special effect, the wav...

Upgrading Windows Server 2008R2 File Server to Windows Server 2016

The user organization has two Windows Server 2008...