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

Method h3

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

The `h1` to `h6` tags define headers. h1 defines the largest header. h6 defines the smallest header.:: self.h3(cssClass='subhead') ... self._h3() >>> b = HtmlBu

(self, **args)

Source from the content-addressed store, hash-verified

835 self._h2()
836
837 def h3(self, **args):
838 """The `h1` to `h6` tags define headers. h1 defines the largest header. h6
839 defines the smallest header.::
840
841 <www href="http://www.w3schools.com/tags/tag_hn.asp" target="external"/>
842
843 self.h3(cssClass='subhead')
844 ...
845 self._h3()
846
847 >>> b = HtmlBuilder()
848 >>> b.compact = True
849 >>> b.h3()
850 >>> b.addHtml('Hello world')
851 >>> b._h3()
852 >>> b.getHtml()
853 '<h3>Hello world</h3>'
854 """
855 self.write_tag_noWhitespace('h3', True, args)
856
857 def _h3(self):
858 self._closeTag_noWhitespace('h3')

Callers 1

h3_Method · 0.95

Calls 1

Tested by

no test coverage detected