How to prevent MacOS from adding dot underscore files (._whatever.html )in zip archives?
There's no native way to automatically exclude resource forks or other extended attribute and filesystem metadata during compression, but many 3rd party apps can do it. These files contain filesystem data that should be preserved and you get a valuable signal that you have lost data when your process strips or ignores these files.
One such is Keka (donationware, ie free direct download, paid from App Store)