There are many options to set font styles and colors in various places of a HTML page, but this question is more about HTML in general than HTML.py itself. Look for "html font" and "html css" in your favorite search engine, there are many useful tutorials to start with.
You may use styles in HTML.py objects when they have a "style" attribute, or else using the "attribs" attribute. For example:
a few answers
There are many options to set font styles and colors in various places of a HTML page, but this question is more about HTML in general than HTML.py itself. Look for "html font" and "html css" in your favorite search engine, there are many useful tutorials to start with.
You may use styles in HTML.py objects when they have a "style" attribute, or else using the "attribs" attribute. For example:
a_list = ['john', 'paul', 'jack'] htmlcode = HTML.list(a_list, attribs={'style': 'font-family: Helvetica, Arial, sans-serif'})To answer your second question, you may add a style attribute to a list so that it is centered:
htmlcode = HTML.list(a_list, attribs={'style': 'text-align: center'})To create links which point to other sections in the same page, just use anchors with a name attribute, and then links such as "#name". Example: