module CGI::HtmlExtension
def caption(align = {}) # :yield:
# =>
caption("left") { "Capital Cities" }
The body of the element is provided by the passed-in no-argument block.
all the attributes of the element. Or it can be omitted.
(one of top, bottom, left, or right). It can be a hash of
+align+ can be a string, giving the alignment of the caption
Generate a Table Caption element as a string.
def caption(align = {}) # :yield: attributes = if align.kind_of?(String) { "ALIGN" => align } else align end super(attributes) end