How to output web page html source code into a file

Why can't you use curl?

curl web-address > file-source.

will output the source code in the file

Like this

curl http://askubuntu.com/questions/822139/how-to-output-web-page-html-source-code-into-a-file > source-html

This has already been answered in: https://askubuntu.com/a/1273410/1124534

w3m -o accept_encoding=UTF-8 -dump_source google.com >file