WordPress announced that version 5.3 will use improved coding that will be closer to standards compliant HTML. There are good reasons why it valid HTML should be considered important for SEO. While the WordPress HTML will not be 100% valid, this update is a step in the right direction.
Source: WordPress 5.3 Moves Closer to Valid HTML – Search Engine Journal