Delete all blank lines and save into the file itself

In all files called *.html, delete all blank lines and save into the file itself (-i option):

for f in *.html; do sed -i '/^ *$/d' $f; done