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

Method head

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

The head element can contain information about the document. The browser does not display the "head information" to the user. The following tags can be in the head section: base, link, meta, script, style and title. <www href="http://www.w3schools.com/tags/tag_head.a

(self, **args)

Source from the content-addressed store, hash-verified

663 self._closeTag('html')
664
665 def head(self, **args):
666 """The head element can contain information about the document. The
667 browser does not display the "head information" to the user. The
668 following tags can be in the head section: base, link, meta, script,
669 style and title.
670
671 <www href="http://www.w3schools.com/tags/tag_head.asp" target="external"/>
672
673 self.head()
674 ...
675 self._head()
676
677 """
678 self.tabs()
679 self.write('<head')
680 self.getandwrite_attributes('head', args)
681 self.write('>')
682 # Push as last, so we can see the current tag on the stack
683 self._pushTag('head')
684
685 def _head(self):
686 self._closeTag('head')

Callers 1

write_headMethod · 0.80

Calls 4

writeMethod · 0.80
_pushTagMethod · 0.80
tabsMethod · 0.45

Tested by

no test coverage detected