The `h1_` to `h6_` tags define headers, combining the opening and closing tag where the s attribute is the block content. >>> b = HtmlBuilder() >>> b.compact = True >>> b.h5_('Hello world') >>> b.getHtml() ' Hello world '
(self, s, **args)
| 935 | self._closeTag_noWhitespace('h5') |
| 936 | |
| 937 | def h5_(self, s, **args): |
| 938 | """The `h1_` to `h6_` tags define headers, combining the opening and |
| 939 | closing tag where the s attribute is the block content. |
| 940 | |
| 941 | >>> b = HtmlBuilder() |
| 942 | >>> b.compact = True |
| 943 | >>> b.h5_('Hello world') |
| 944 | >>> b.getHtml() |
| 945 | '<h5>Hello world</h5>' |
| 946 | """ |
| 947 | self.h5(**args) |
| 948 | self.addHtml(s) |
| 949 | self._h5() |
| 950 | |
| 951 | def h6(self, **args): |
| 952 | """The `h1` to `h6` tags define headers. h1 defines the largest header. h6 |