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

Method h5

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

The `h1` to `h6` tags define headers. h1 defines the largest header. h6 defines the smallest header.:: self.h5(cssClass='caption') ... self._h5() >>> b = HtmlB

(self, **args)

Source from the content-addressed store, hash-verified

912 self._h4()
913
914 def h5(self, **args):
915 """The `h1` to `h6` tags define headers. h1 defines the largest header. h6
916 defines the smallest header.::
917
918 <www href="http://www.w3schools.com/tags/tag_hn.asp" target="external"/>
919
920 self.h5(cssClass='caption')
921 ...
922 self._h5()
923
924 >>> b = HtmlBuilder()
925 >>> b.compact = True
926 >>> b.h5()
927 >>> b.addHtml('Hello world')
928 >>> b._h5()
929 >>> b.getHtml()
930 '<h5>Hello world</h5>'
931 """
932 self.write_tag_noWhitespace('h5', True, args)
933
934 def _h5(self):
935 self._closeTag_noWhitespace('h5')

Callers 2

h5_Method · 0.95
build_htmlMethod · 0.80

Calls 1

Tested by

no test coverage detected