Since it is good practice to leave alt-text for images for users who require screen readers, are html comments ignored by Screen Readers?. I know the browser ignored comments, but do screen readers also ignore them?
Yes, they are. Comments are for yourself and other developers on the project. This way, other developers know what certain code is suppose to do. Or even for yourself, if you ever have to make change to an existing code base after a long time
The trick is to write as much “self-explaining” code as possible, where looking at the code it quickly becomes clear what the code is suppose to do
Placing too much/obvious comments can actual obstruct code readability.
Yes, HTML comments are ignored. Same applies to search engines.