1. Computing & Technology

Discuss in my forum

border - HTML Attribute for the Table Tag

By , About.com Guide

Border TABLE Attribute Description:

The border attribute sets the width of a border around the table and in between the table cells and rows.

I strongly recommended that you use the CSS property border instead of this attribute to get more control over your table borders.

This attribute is not valid in HTML5.

Border TABLE Attribute Used with Tags:

Border TABLE Attribute Content:

Number (in pixels)

Border TABLE Attribute Default:

Not required

Border TABLE Attribute HTML Version Support:

  • HTML 3.2, HTML 4.01
  • XHTML 1.0

The border table attribute is not a valid attribute in HTML5.

Border TABLE Attribute DTD:

HTML 4.01 Standard

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

XHTML 1.0 Standard

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Other Tags with Border Attributes:

©2012 About.com. All rights reserved.

A part of The New York Times Company.