This document is based on questions asked on PEAR general mailing list and other mailing lists and forums.
Here is an example on how to set the attribute string id="header" for the thead tag. For the other two tags the procedure is similar.
$table = new HTML_Table(); // [...] $thead =& $table->getHeader(); $thead->setAttributes(array('id' => 'header')); // [...] $table->display(); |
This would give the following result:
<table> <thead id="header"> [...] </thead> [...] </table> |
Пред. | Начало | След. |
Introduction | Уровень выше | HTML_Table::HTML_Table |
HIVE: All information for read only. Please respect copyright! |