HTML/CSS/Table Style/table header
Содержание
- 1 Add background for table header
- 2 Add background image for table header
- 3 Add different background images for each table column header
- 4 Add padding for table header and table cell
- 5 Background for table header row
- 6 Basic table with th tag
- 7 Grouped table header
- 8 Nested table header
- 9 Selecting cells in head
- 10 Set table border for table header
- 11 Set table header border to be 1px solid black, its width to 6em
- 12 Style for table header
- 13 Row Groups
- 14 Table header and cell overflow hidden
- 15 table header background-color: #cccccc;
- 16 Table header column span
- 17 Table header font, background and padding
- 18 table header font-weight: bold;
- 19 Table header format
- 20 table header height: 50px;
- 21 Table header style
- 22 table header tag
- 23 table header text-align: left;
- 24 Table header with border
- 25 th background-color: gold;
- 26 th color: navy
- 27 thead is the first section of a table. It formats the table header area.
- 28 Three row header
- 29 header 1
Add background for table header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css" media="screen"> div { margin-bottom: 30px; } #divID table { border-top: 1px solid #999; border-left: 1px solid #999; border-collapse: collapse; } #divID th, #divID td { padding: 10px; border-right: 1px solid #999; border-bottom: 1px solid #999; } #divID caption { font-family: Arial, sans-serif; color: #993333; padding-bottom: 6px; } #divID th { font-family: Verdana, sans-serif; font-size: 12px; background: #ccc; } </style>
</head> <body>
Year | Opponent | Item 3 |
---|---|---|
1918 | Item A | 75-51 |
1916 | Item B | 91-63 |
1915 | Item C | 101-50 |
1912 | Item D | 105-47 |
</body> </html>
</source>
Add background image for table header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css" media="screen"> #divID th { font-family: Verdana, sans-serif; font-size: 12px; background: url(image/th_stripe.gif); } </style>
</head> <body>
Year | Opponent | Item 3 |
---|---|---|
1918 | Item A | 75-51 |
1916 | Item B | 91-63 |
1915 | Item C | 101-50 |
1912 | Item D | 105-47 |
</body> </html>
</source>
Add different background images for each table column header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css" media="screen"> #divID th { font-family: Verdana, sans-serif; font-size: 12px; background: url(image/th_stripe.gif); } #divID #year { padding-left: 26px; background: #ccc url(img/icon_year.gif) no-repeat 10px 50%; } #divID #opponent { padding-left: 26px; background: #ccc url(img/icon_opp.gif) no-repeat 10px 50%; } #divID #record { padding-left: 26px; background: #ccc url(img/icon_rec.gif) no-repeat 10px 50%; } </style>
</head> <body>
Year | Opponent | Season Record (W-L) |
---|---|---|
1918 | Item A | 75-51 |
1916 | Item B | 91-63 |
1915 | Item C | 101-50 |
1912 | Item D | 105-47 |
</body> </html>
</source>
Add padding for table header and table cell
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css" media="screen"> div { margin-bottom: 30px; } #divID table { border-top: 1px solid #999; border-left: 1px solid #999; border-collapse: collapse; } #divID th, #divID td { padding: 10px; border-right: 1px solid #999; border-bottom: 1px solid #999; } </style>
</head> <body>
Year | Opponent | Item 3 |
---|---|---|
1918 | Item A | 75-51 |
1916 | Item B | 91-63 |
1915 | Item C | 101-50 |
1912 | Item D | 105-47 |
</body> </html>
</source>
Background for table header row
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css" title="text/css">
table {
border-top: 1px solid #c9c9c9; border-left: 1px solid #c9c9c9;
} caption {
padding: 0 0 10px; font: bold 120% Arial, sans-serif; text-transform: uppercase;
} th {
background: #bababa url(stripe.gif) 0 50% repeat-x; text-align: left; font-weight: bold;
} th,td {
border-bottom: 1px solid #c9c9c9; border-right: 1px solid #c9c9c9; font: 80% Verdana, Arial, sans-serif; padding: 2px 5px;
} </style> </head> <body>
S | T | A | A | P |
---|---|---|---|---|
Music | ||||
A | 2:35 | A | A | 7 |
B | 2:35 | B | B | 7 |
C | 2:35 | C | C | 7 |
D | 2:35 | D | D | 7 |
E | 2:35 | E | E | 7 |
F | 2:35 | F | F | 7 |
G | 2:35 | G | G | 7 |
H | 2:35 | H | H | 7 |
I | 2:35 | I | I | 7 |
J | 2:35 | J | J | 7 |
K | 2:35 | K | K | 7 |
L | 2:35 | L | L | 7 |
</body> </html>
</source>
Basic table with th tag
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Basic Table 2</title> </head> <body>
N | P |
---|---|
P | O |
V | B |
L | L |
E | P |
</body> </html>
</source>
Grouped table header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html> <head> <title>My favorite Movies</title> <style type="text/css" media="all"> table { border-width: 0px; width: 500px; } th { background: black; color: white; } </style> </head> <body>
My Favorite Movies |
||
---|---|---|
Title |
Actor/Actress |
Genre |
W | R | D |
S | K | H |
G | B | C |
</body> </html> </source>
Nested table header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Colgroup 2</title>
<style>
td, th {
border: 1px solid black;
} </style> </head> <body>
Name | Place of residence | Date of birth | ||
---|---|---|---|---|
dd | mm | yyyy | ||
P | O | 14 | 06 | 1978 |
V | B | 12 | 01 | 1985 |
L | L | 01 | 03 | 1956 |
E | P | 28 | 02 | 1979 |
</body> </html>
</source>
Selecting cells in head
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title>
<style type="text/css" media="Screen">
- t1 thead td {
font-weight: bold;
} </style> </head> <body>
c1 | c2 | c3 | c4 | c5 | c6 |
c1 | c2 | c3 | c4 | c5 | c6 |
r2 c1 | c2 | c3 | c4 | c5 | c6 |
</body> </html>
</source>
Set table border for table header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Chater 3 - Tables are Evil?</title> <style type="text/css" media="screen"> div { margin-bottom: 30px; } #divID table { border-top: 1px solid #999; border-left: 1px solid #999; } #divID th, #divID td { border-right: 1px solid #999; border-bottom: 1px solid #999; } </style>
</head> <body>
Year | Opponent | Item 3 |
---|---|---|
1918 | Item A | 75-51 |
1916 | Item B | 91-63 |
1915 | Item C | 101-50 |
1912 | Item D | 105-47 |
</body> </html>
</source>
Set table header border to be 1px solid black, its width to 6em
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> th {
border: 1px solid black; width: 6em;
} </style> </head> <body>
<form method="get" name="copresentations">
F | W | P | N |
---|---|---|---|
2003 | <input type="text" name="w2003" /> | <input type="text" name="p2003" /> | <input type="text" name="n2003" /> |
2004 | <input type="text" name="w2004" /> | <input type="text" name="p2004" /> | <input type="text" name="n2004" /> |
<input type="submit" class="save" value="Save" /> </form>
</body> </html>
</source>
Style for table header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title>
<style type="text/css" media="Screen"> table.example1 thead {
background: red; color: black;
}
</style> </head> <body>
Row Groups
thead | 2 | 3 | 4 |
---|---|---|---|
tfoot | 10 | 11 | 12 |
tbody | 6 | 7 | 8 |
</body> </html>
</source>
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>
<head> <title> My favorite records </title> <style rel="stylesheet" type="text/css">
body {
margin: 0;
} table {
width: 200px; border: thin solid black; table-layout: fixed;
} th, td {
overflow: hidden;
} th, tfoot td {
border: thin solid black; text-align: center; font-weight: bold;
} tbody td {
font-size: 120%;
} caption {
font-size: 90%; text-align: right;
} td, th, caption {
padding: 5px;
}
</style> </head> <body>
< -- 200 pixels -- >
a | a | r |
---|---|---|
R | T | 1 |
B | V | 1 |
Q | Q | 1 |
M | T | 1 |
a | a | r |
</body>
</html>
</source>
table header background-color: #cccccc;
<source lang="html4strict">
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head>
<title>CSS Example</title> <style rel="stylesheet" type="text/css">
th {
height: 50px; font-weight: bold; text-align: left; background-color: #cccccc;
}
</style> </head> <body>
Property | Purpose |
---|---|
font-family | Specifies the font used. |
font-size | Specifies the size of the font used. |
font-style | Specifies whether the font should be normal, italic, or oblique. |
font-weight | Specifies whether the font should be normal, bold, bolder, or lighter. |
</body> </html>
</source>
Table header column span
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body>
General |
|
---|---|
Estimate |
|
Total population |
272,091 |
</body> </html>
</source>
Table header font, background and padding
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> table {
border-collapse: collapse; width: 100%; border: 1px solid #666;
}
th { background: #888; padding: .5em 0 .5em 7px; text-align: left; border-top: 1px solid #666; border-bottom: 1px solid #666; text-shadow: #ccc -2px 2px -2px;
} </style> </head> <body>
General Characteristics |
|||
---|---|---|---|
E | L | U | |
T | 272,091 | **** | **** |
Sex | |||
Male | 1 | 1 | 1 |
Female | 1 | 1 | 1 |
</body> </html>
</source>
table header font-weight: bold;
<source lang="html4strict">
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head>
<title>CSS Example</title> <style rel="stylesheet" type="text/css">
th {
height: 50px; font-weight: bold; text-align: left; background-color: #cccccc;
}
</style> </head> <body>
Property | Purpose |
---|---|
font-family | Specifies the font used. |
font-size | Specifies the size of the font used. |
font-style | Specifies whether the font should be normal, italic, or oblique. |
font-weight | Specifies whether the font should be normal, bold, bolder, or lighter. |
</body> </html>
</source>
Table header format
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>
<head> <title> HTML tables </title> <style type="text/css"> table { width: 300px; caption-side: bottom; border: thin solid black; table-layout: fixed; border-spacing: 0; margin: 5px; } th, td { border: thin solid black; text-align: center; font-weight: bold; overflow: hidden; } th { background: lightgrey; } td { vertical-align: top; } caption { font-size: 90%; text-align: right; } td, th, caption { padding: 5px; } </style> </head> <body>
movie | stars | genre | year |
---|---|---|---|
t | F | C | 2 |
t | F | A | 2 |
N | C | D | 2 |
</body>
</html>
</source>
table header height: 50px;
<source lang="html4strict">
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head>
<title>CSS Example</title> <style rel="stylesheet" type="text/css">
th {
height: 50px; font-weight: bold; text-align: left; background-color: #cccccc;
} </style> </head> <body>
Property | Purpose |
---|---|
font-family | Specifies the font used. |
font-size | Specifies the size of the font used. |
font-style | Specifies whether the font should be normal, italic, or oblique. |
font-weight | Specifies whether the font should be normal, bold, bolder, or lighter. |
</body> </html>
</source>
Table header style
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> th {
text-align: left; padding: 1em 1.5em 0.1em 0.5em; color: white; background-color: blue; border-right: 2px solid blue;
} .secondrow th {
background-color: #009;
} </style> </head> <body>
Table 1. General Characteristics |
|||
---|---|---|---|
Item |
Estimate |
Lower Bound |
Upper Bound |
Total population | 272,091 | **** | **** |
Sex | |||
Male | 129,179 | 127,670 | 131,908 |
Female | 142,302 | 140,183 | 144,421 |
</body> </html>
</source>
table header tag
<source lang="html4strict">
<?xml version"1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <title>Using the table header attribute</title> </head> <body>
Pizza Type | Small | Medium | Large |
---|---|---|---|
Thin Crust | 3.99 | 4.99 | 6.99 |
Deep Dish | 4.99 | 6.99 | 8.99 |
Stuffed Crust | 5.99 | 7.99 | 9.99 |
</body>
</html>
</source>
table header text-align: left;
<source lang="html4strict">
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head>
<title>CSS Example</title> <style rel="stylesheet" type="text/css">
th {
height: 50px; font-weight: bold; text-align: left; background-color: #cccccc;
} </style> </head> <body>
Property | Purpose |
---|---|
font-family | Specifies the font used. |
font-size | Specifies the size of the font used. |
font-style | Specifies whether the font should be normal, italic, or oblique. |
font-weight | Specifies whether the font should be normal, bold, bolder, or lighter. |
</body> </html>
</source>
Table header with border
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>
<head> <title> HTML tables </title> <style type="text/css"> table { width: 300px; caption-side: bottom; border: thin solid black; table-layout: fixed; border-spacing: 0; margin: 5px; } th, td { border: thin solid black; text-align: center; font-weight: bold; overflow: hidden; } th { background: lightgrey; } td { vertical-align: top; } caption { font-size: 90%; text-align: right; } td, th, caption { padding: 5px; } </style> </head> <body>
movie | stars | genre | year |
---|---|---|---|
B | J | C | 2 |
T | E | A | 2 |
T | K | A | 2 |
</body>
</html>
</source>
th background-color: gold;
<source lang="html4strict">
<html> <head><title>Tables</title> <style type="text/css"> td {
text-align: center; font-weight: bold;
} table {
background-color: blue; color: white;
} caption {
background-color: red; color: yellow; font-weight: bold;
} th {
background-color: gold; color: navy
} td.center {
background-color: white; color: black;
} </style></head> <body>
Col 1 | Col 2 | Col 3 |
---|---|---|
X | X | X |
X | X | X |
X | X | X |
</body> </html>
</source>
<source lang="html4strict">
<html> <head><title>Tables</title> <style type="text/css"> td {
text-align: center; font-weight: bold;
} table {
background-color: blue; color: white;
} caption {
background-color: red; color: yellow; font-weight: bold;
} th {
background-color: gold; color: navy
} td.center {
background-color: white; color: black;
} </style></head> <body>
Col 1 | Col 2 | Col 3 |
---|---|---|
X | X | X |
X | X | X |
X | X | X |
</body> </html>
</source>
thead is the first section of a table. It formats the table header area.
<source lang="html4strict">
<?xml version = "1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head> <title>A simple XHTML table</title> </head> <body>
Fruit | Price |
---|---|
Apple | $0.25 |
Orange | $0.50 |
Banana | $1.00 |
Pineapple | $2.00 |
</body>
</html>
</source>
Three row header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> body {
margin: 10px 40px; padding: 0; text-align: center; font-size: 62.5%;
}
- wrapper {
text-align: left; border: 1px solid #033; position: relative; font-size: 1.4em;
}
- header {
background: #033; color: #fff; height: 55px; position: relative;
}
- header h1,#header h2 {
position: absolute; padding: 0; margin: 0;
}
- header h1 {
top: 5px; left: 8px; height: 50px;
}
- header h2 {
top: 20px; left: 193px;
}
- headerlinks {
float: right; font-size: 0.8em; padding: 6px 6px 8px 10px;
}
- headerlinks a:link,#headerlinks a:visited,#headerlinks a:hover,#headerlinks a:active{
color: #fff;
}
- headersearch form {
padding: 0; margin: 0;
}
- headersearch {
position: absolute; top: 2em; right: 5px;
}
- headersearch form input {
padding: 0; margin: 0; vertical-align: middle;
}
- txtSearch {
height: 17px; width: 115px; border: 1px solid black;
}
- tablinks {
background: #336868;
}
- tablinks div {
float: left; border-right: 1px solid #094747;
}
- tablinks a {
display: block; padding: 5px 10px;
}
- tablinks a:link,#tablinks a:visited,#tablinks a:hover,#tablinks a:active
{ color: white; text-decoration: none;
}
- tablinks a.current {
background: #047070;
}
- breadcrumb {
background: #009f9f; color: #fff; padding: 5px 10px;
}
- breadcrumb a {
color: #fff;
}
- breadcrumb ul,#breadcrumb li {
display: inline; padding: 0; margin: 0;
}
- breadcrumb ul li {
padding-left: 0;
}
- breadcrumb ul li ul li {
padding-left: 14px;
} .clearfix:after {
content: "."; display: block; height: 0; clear: both; visibility: hidden;
} .clearfix {
display: inline-table;
} </style> </head> <body id="cols3">
header 1
header 2
<a href="">Contact Us</a> | <a href="">Site Map</a> |<a href="">Store Locator</a>
<form> <input type="text" name="txtSearch" id="txtSearch" /><input type="image" src="searchbutton.gif" alt="Search" /></form>
</body> </html>
</source>
Two level of table header
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html> <head> <title>My favorite Movies</title> <style type="text/css" media="all"> table { border-width: 1px; width: 500px; } th { background: #ddd; color: white; } #footer { background: #ccc; color: white; } </style> </head> <body>
My Favorite Movies |
||
---|---|---|
Title |
Actor/Actress |
Genre |
W | R | D |
S | K | H |
G | B | C |
</body> </html> </source>