Headings: [Skip]

Web-Design Tutorials by Dr Sam

CSS for Tables

Menu [Skip]

Attributes for Table Elements

Refined

border="border"

Look and compare:

HTML 4.01 XHTML 1.0
  • In HTML, the value of the border attribute is a number.
  • The number controls the density (or width) of the border:
  • In XHTML, we specify only the word "border" as the value.

    This instructs the browser to draw a table border.

  • A standards-compliant browser will apply its own default values to the border.
  • Or, if we want to, we may control the appearance with CSS.