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

Method style

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

Defines a style in a document. The style element goes in the head section. If you want to include a style sheet in your page, you should define the style sheet externally, and link to it using XHTML link. <www href="http://www.w3schools.com/tags/tag_style.asp" target="extern

(self, styleType='text/css', **args)

Source from the content-addressed store, hash-verified

1408 self._closeTag_noWhitespace('th')
1409
1410 def style(self, styleType='text/css', **args):
1411 """Defines a style in a document. The style element goes in the head
1412 section. If you want to include a style sheet in your page, you should
1413 define the style sheet externally, and link to it using XHTML link.
1414
1415 <www href="http://www.w3schools.com/tags/tag_style.asp" target="external"/>
1416
1417 self.style()
1418 ...
1419 self._style()
1420
1421 """
1422 self.write_tag('style', True, args)
1423
1424 def _style(self):
1425 self._closeTag('style')

Callers 1

write_headMethod · 0.80

Calls 1

write_tagMethod · 0.80

Tested by

no test coverage detected