Update html.py

Comments added for clarity