Don't agree entirely with that.
You can use the so-called SSI (Server Side Includes) from within HTML but only if the server supports SSI, which a lot of servers do. With SSI you can not only include files but a lot of other things also.
Best is to use google and have a look at the zillion entries. An introductory overview can be found
HERE
Ronald