Mueller shares this recommendations in a Reddit thread, where a user asks whether HTML code positioning could cause SEO problems.
The response is yes; the placement of HTML code might negatively affect your SEO efforts if it does not appear at the top of the page.
More specifically, it’s important to keep thesection of the HTML file at the top of the page. This area should contain the details that Google needs to read your site effectively.
“The html headers () need to be pretty much on top. I ‘d move any JS to listed below the HTML headers, and talk to the rendering tool in search console that the JS does not mess up the area.”
Regarding the main content, Mueller states its placement is lesser, though it’s important for thearea to be tidy and efficient so Googlebot can correctly understand it.
“For the material it does not matter as much, however given that the head things is for machine-readable details that’s confirmed to be in a specific part of the page, it really requires to be tidy on top.
Included Image: StockEU/SMM Panel