The typical measure is “Source Lines of Code” (SLOC), which would be calculated on a per-language basis and doesn’t include comments or blank lines. You’d sum these together for your codebase overall. Not sure how you’d do it for HTML or mixed code. Presumably the same since it’s such a rough measure that that level of accuracy really doesn’t matter.
I'm using tokei for that. EDIT: it gives you the number of lines of code, blank lines and comment lines, for each language in your project.
cloc is another commonly used package. It handles multiple languages and has a nice, readable output format.