There is a service provided by the W3C (the organization that sets web standards) that will tell you if your HTML is valid or not according to the standard.
Running your code through the validator returns some warnings. See here:
https://validator.w3.org/nu/#textarea