Hello Mowri,
Apparently html files are associated with TextEdit.app in your environment.
It means your default browser IS TextEdit in a sense...
Does TextEdit.app has such setting in its preferences?
Or are you using something like RCDefaultApp [1] that modifies standard associations between file and application?
If there's no apparent reason for such association, I'd rebuild launch services database by using Onyx [2] or lsregister command explained in, e.g., [3].
Of course you may open a file by specified application by using open(1) command with -a or -b option [4] (provided that you know the application).
However, fixing the undesired association is the way to go, I'd think.
Good luck,
H
cf.
[1] RCDefaultApp
http://www.rubicode.com/Software/RCDefaultApp/index.html
[2] Onyx
http://www.titanium.free.fr/pgs/english/apps.html
[3] How to rebuild the LaunchServices database
http://www.macosxhints.com/article.php?story=20031215144430486
[4] open(1)
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/open.1.h tml