Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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.

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.