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 Google “understand” a document for ranking purposes. About This Document This document is aimed at helping people understand how Google