Tag:td>
-
HTML table markup tutorial (10): cell margin attribute cellpadding
Cell margin refers to the distance between the cell content and the border.Basic grammar <TABLE Cellpadding=value> Grammatical interpretation The margins of cells are in pixels.Example of document: 10-10.htm Set the cell margins of the table.01 <!– —————————— –>02 <!– File example: 10-10.htm — >03 <!– File Description: set the cell margin of the table — […]
-
HTML table markup tutorial (11): align attribute horizontally
In the horizontal direction, you can set the alignment of the table, including left, center, and right.Basic grammar <TABLE ALIGN=”LEFT”> <TABLE ALIGN=”CENTER”> <TABLE ALIGN=”RIGHT”> Grammatical interpretation Left is left, center is center, and right is right.Example of document: 10-11.htm Set the horizontal alignment of the table.01 <!– —————————— –>02 <!– File example: 10-11.htm — >03 […]
-
HTML table markup tutorial (12): border style attribute frame
Use the frame attribute to control the style type of table borders.Basic grammar <TABLE Frame=”value”> Grammatical interpretation The values of value are shown in the following table:Border style of table Attribute value describeAboveExample of document: 10-12.htm Set the border style of the table.01 <!– —————————— –>02 <!– File example: 10-12.htm — >03 <!– File Description: […]
-
HTML table markup tutorial (8): background image attribute background
You can use any GIF or JPEG image file to set the background image for the table.Basic grammar <TABLE BACKGROUND=FILE_name> Grammatical interpretation When defining the background image, write down the full path or relative path of the image file.Example of document: 10-8.htm Set the background image of the table.01 <!– —————————— –>02 <!– File example: […]
-
HTML table markup tutorial (9): cell spacing attribute cellspacing
A certain distance can be set between the cells of the table, so that the table will not appear too compact.Basic grammar <TABLE CellSpacing=value> Grammatical interpretation The spacing of cells is in pixels.Example of document: 10-9.htm Set the cell spacing of the table.01 <!– —————————— –>02 <!– File example: 10-9.htm — >03 <!– File Description: […]
-
HTML table markup tutorial (6): dark border color attribute bordercolordark
In the table, you can define the color of the lower right border separately, or the color of the upper left border in the cell. The border color of these two positions is called dark border color.Basic grammar <TABLE Bordercolordark=color_VALUE> Grammatical interpretation When defining colors, you can use English color names or hexadecimal color values.Example […]
-
HTML table markup tutorial (7): background color attribute bgcolor
Through bgcolor attribute, you can set the background color of the table.Basic grammar <TABLE BGCOLORr=color_VALUE> Grammatical interpretation When defining colors, you can use English color names or hexadecimal color values.Example of document: 10-7 htm Set the color of the table background.01 <!– —————————— –>02 <!– Example of document: 10-7 htm –>03 <!– File Description: set […]
-
HTML table markup tutorial (5): bright border color attribute bordercolorlight
In the table, you can define the color of the upper left border separately, or the color of the lower right border in the cell. The border color of these two positions is called bright border.Basic grammar <TABLE Bordercolorlight=color_VALUE> Grammatical interpretation When defining colors, you can use English color names or hexadecimal color values.Example of […]
-
HTML table markup tutorial (3): width and height attributes width, height
By default, the width and height of the table are automatically adjusted according to the content. We can also manually set the width and height of the table.Basic grammar <TABLE WIDTH=VALUE HEIGHT=VALUE> Grammatical interpretation The width attribute defines the width of the table, and the height attribute defines the height of the table, in pixels […]
-
HTML table markup tutorial (4): border color attribute bordercolor
To beautify the table, you can set different border colors for the table.Basic grammar <TABLE BORDERCOLOR=COLOR_VALUE> Grammatical interpretation When defining colors, you can use English color names or hexadecimal color values.Example of document: 10-4 htm Sets the color of the table border.01 <!– —————————— –>02 <!– Example of document: 10-4 htm –>03 <!– File Description: […]
-
HTML table markup tutorial (1): making tables
This is a series of tutorials provided by developeppaer. It is mainly for beginners to explain the application of tables in web pages, including the most basic knowledge and some skills of tables. I hope you will support developeppaer.Tables are the best way to arrange content. In HTML pages, most pages use tables for typesetting. […]
-
HTML table markup tutorial (2): table border attribute border
By default, the border of the table is 0, and we can set the border line for the table.Basic grammar <TABLE BORDER=VALUE> Grammatical interpretation Define the width of the border line in pixels through the border attribute.Example of document: 10-2 htm Sets the width of the border line.01 <!– —————————— –>02 <!– Example of document: […]