And here's a two-line web browser written in bash:
#!/bin/bash
firefox
To clarify: If you're using a third-party rendering engine, your effort doesn't count as a "web browser". HTML parsing, CSS rendering, javascript support etc is the hard stuff - back/forward buttons and tabs aren't.