• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

The <CAPTION> Element

You use the <CAPTION> element to add a caption to a table (see Listing 14.10 for an example). As you would expect, this element has its own properties (see Table 14.18). JavaScript’s core HTML properties, methods, and events, which we covered in Chapters 5 and 6, also apply to the <CAPTION> element as well.

Table 14.18. The Properties of the <CAPTION> Element (See Chapters 5 and 6 for the JavaScript core HTML properties, methods, and events that also apply to this element.)
Property NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
align    x   x x x x
  Read/write
  Sets or gets the alignment of the element. Set to "center" (aligns to the center), "justify" (aligns to the left and right edge), "left" (the default—aligns to the left edge), or "right" (aligns to the right edge).
vAlign    x   x x x x
  Read/write
  Sets or gets how contents are aligned within the row that contains them. Set to "middle" (the default—aligns the text in the middle), "baseline" (aligns the base line), "bottom" (aligns the text at the bottom), or "top" (aligns the text at the top).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint