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.h3_('Hello world') >>> b.getHtml() ' Hello world '
(self, s, **args)
| 859 | self.newLine() # Optional newline is self.compact is False. |
| 860 | |
| 861 | def h3_(self, s, **args): |
| 862 | """The `h1_` to `h6_` tags define headers, combining the opening and |
| 863 | closing tag where the s attribute is the block content. |
| 864 | |
| 865 | >>> b = HtmlBuilder() |
| 866 | >>> b.compact = True |
| 867 | >>> b.h3_('Hello world') |
| 868 | >>> b.getHtml() |
| 869 | '<h3>Hello world</h3>' |
| 870 | """ |
| 871 | self.h3(**args) |
| 872 | self.addHtml(s) |
| 873 | self._h3() |
| 874 | |
| 875 | def h4(self, **args): |
| 876 | """The `h1` to `h6` tags define headers. h1 defines the largest header. h6 |