Learn how to style tables using CSS and the border
property:
table { border:none; }
CSS rules take precedence over traditional HTML attributes, as demonstrated in the example below:
<!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>
<title>CSS Styling for Tables</title>
<style type="text/css">
table {
border:none;
}
</style>
</head>
<body>
<h2>No Frame Attribute</h2>
<table>
<tbody>
[Table rows and cells with numerical values]
</tbody>
</table>
<h2>Frame = "box"</h2>
<table frame="box">
<tbody>
[Table rows and cells with numerical values]
</tbody>
</table>
<h2>Frame = "void"</h2>
<table frame="void">
<tbody>
[Table rows and cells with numerical values]
</tbody>
</table>
</body>
</html>
Despite having different values for the frame
attribute, all three tables above render identically due to the CSS styling overriding HTML attributes.