: Does excessive markup affect SEO? For example, if I wrap my content with <div> tags (for no reason, just for arguments sake), would that cause a difference to search engines? Does thinner
For example, if I wrap my content with <div> tags (for no reason, just for arguments sake), would that cause a difference to search engines? Does thinner markup improve SEO?
<body>
<div>
<div>
<div>
<main>
<p>Text text text text text...</p>
</main>
</div>
</div>
</div>
</body>
versus
<body>
<div>
<main>
<p>Text text text text text...</p>
</main>
</div>
</body>
versus
<body>
<main>
<p>Text text text text text...</p>
</main>
</body>
From an SEO standpoint, are these all equal or not?
More posts by @Carla537
3 Comments
Sorted by latest first Latest Oldest Best
From an SEO perspective the examples you give are the same. I would suggest you look into using the semantic elements introduced with HTML5 such as:
<article>
<aside>
<details>
<figcaption>
<figure>
<footer>
<header>
<main>
<mark>
<nav>
<section>
<summary>
<time>
Another problem with a code-heavy site is it takes the search engine spiders longer to crawl your pages. Even if bloated code does not affect page load time (from the visitor's perspective) the longer crawl time can negatively affect how the search engines rate your site. (It's not a major signal but every little bit helps.)
From SearchEngineGuide.com:
Clean and lean code can improve website performance issues more than
most people think. Bloated code can slow down both spidering and page
download, both of which can have an impact on a site's search engine
rankings.
In SEO perspective wrapping contents with <div> tags is not an issue but large amount unwanted coding will increase the bytes of data which may increase the PageSpeed. Here an extract from this source:
Compacting HTML code, including any inline JavaScript and CSS
contained in it, can save many bytes of data and speed up downloading,
parsing, and execution time.
Since PageSpeed is one among the ranking factor in Google, using these unwanted <div> tags is not an appreciated one. See this news from Google official blog.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.