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

Method h6

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

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

(self, **args)

Source from the content-addressed store, hash-verified

949 self._h5()
950
951 def h6(self, **args):
952 """The `h1` to `h6` tags define headers. h1 defines the largest header. h6
953 defines the smallest header.::
954
955 <www href="http://www.w3schools.com/tags/tag_hn.asp" target="external"/>
956
957 self.h6(cssClass='footnote')
958 ...
959 self._h6()
960
961 >>> b = HtmlBuilder()
962 >>> b.compact = True
963 >>> b.h6()
964 >>> b.addHtml('Hello world')
965 >>> b._h6()
966 >>> b.getHtml()
967 '<h6>Hello world</h6>'
968 """
969 self.write_tag_noWhitespace('h6', True, args)
970
971 def _h6(self):
972 self._closeTag_noWhitespace('h6')

Callers 1

h6_Method · 0.95

Calls 1

Tested by

no test coverage detected