The `h1` to `h6` tags define headers. h1 defines the largest header. h6 defines the smallest header.:: self.h1(cssClass='chapter') ... self._h1() >>> b = HtmlBui
(self, **args)
| 758 | |
| 759 | |
| 760 | def h1(self, **args): |
| 761 | """The `h1` to `h6` tags define headers. h1 defines the largest header. h6 |
| 762 | defines the smallest header.:: |
| 763 | |
| 764 | <www href="http://www.w3schools.com/tags/tag_hn.asp" target="external"/> |
| 765 | self.h1(cssClass='chapter') |
| 766 | ... |
| 767 | self._h1() |
| 768 | |
| 769 | >>> b = HtmlBuilder() |
| 770 | >>> b.compact = True |
| 771 | >>> b.h1() |
| 772 | >>> b.addHtml('Hello world') |
| 773 | >>> b._h1() |
| 774 | >>> b.getHtml() |
| 775 | '<h1>Hello world</h1>' |
| 776 | """ |
| 777 | self.write_tag_noWhitespace('h1', True, args) |
| 778 | |
| 779 | def _h1(self): |
| 780 | self._closeTag_noWhitespace('h1') |
no test coverage detected