MCPcopy Create free account
hub / github.com/PageBot/PageBot / h1

Method h1

Lib/pagebot/contexts/htmlcontext/htmlbuilder.py:760–777  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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')

Callers 3

h1_Method · 0.95
build_htmlMethod · 0.80
build_htmlMethod · 0.80

Calls 1

Tested by

no test coverage detected