To serve all HTML files from the current working directory
python3 -m http.server
python3 -m http.server 8080 # for different port
python3 -m http.server 8080 --bind 127.0.0.1 # for secure binding
python3 -m http.server --cgi
To serve all HTML files from the current working directory
python -m simplehttpserver
python -m CGIHTTPServer