No, HTML quality doesnt help your SEO or Rank in Google
Google’s official stance, clarified by Gary Illyes, confirms that HTML structure and code quality are not direct ranking factors. While valid HTML is a best practice, it does not inherently help