Do some research on standard HTML tags, and add support for another one of your choice.
- (Hopefully) easy choices: anything that just alters the appearance of the text, e.g.
font color
. - Slightly harder: support the horizontal rule,
hr
, or theul
andli
list tags. - Medium choices: change the title bar of the browser window when it finds a
title
tag. (Hint: this will probably involve adding another function to theBrowser
class which you'll call from theRenderer
class). - Very hard choice: add support for
img src
which will include pictures on the page. This will likely take several hours even if you're a Python wizard. You'd need to do this:- Get an absolute URI to the image (see the existing code in
link_clicked
which does the same) - Download the image file using
requests
, perhaps into aNamedTemporaryFile
- Use
create_image
on thecanvas
to draw it.
- Get an absolute URI to the image (see the existing code in
- Another very hard choice: the
blink
tag. This will require you to set a timer to re-draw the page periodically. - Impossible choice: anything to do with page layout. Don't attempt to support tables, frames or anything fancy like that. It would take hundreds of hours - it's all very complicated. Don't even try.