Avast will scan on access: so if you open a file it will scan it, if you just look in a folder then as nothing is being accessed it will not be scanned unless requested by a right click.
If that HTML file is accessed it will be scanned and reported if need be
Also a normal or boot scan will also detect it