Noticed a div element that has nothing in it

When studying the source code for the “product landing page” , I noticed a <div class="container></div> that has nothing in it, unlike similar divs that have elements inside. Perhaps, it is just used for spacing or is it a typo?

The code is in the photo.

It is the very first div at the top

There is nothing technically wrong with have an empty div. This one doesn’t seem to be doing anything. When I remove it from the DOM nothing on the page is affected. So it’s probably just an oversight. Nothing to be concerned about.

But good eye on that catch. You’re starting to think like a developer :slight_smile:

I will rebuild it on my own. It seems like the “section” element below it is meant to go inside it, but probably will not make any noticeable changes user visibility wise.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.