You may already be aware of the following free software tools that can be used to validate your code. I didn’t see them listed anywhere else in this forum so in case you’re not aware of them, the link to them is as follows:

https://validator.w3.org/

https://jigsaw.w3.org/css-validator/

……………..Ed