Assigning an ID attribute to a DIV

HTL BID assigns Slot IDs automatically. This is to ensure that all IDs are unique on the page.

The following code is invalid for HTL BID and may cause blank space or other incorrect rendering behavior

<div id="my-leaderboard" class="htlad-leaderboard"></div>

Instead, if an ID is needed for CSS or other DOM manipulation reasons, you can wrap the DIV inside another container, for example

<div id="my-leaderboard">
  <div class="htlad-leaderboard"></div>
</div>

*Note - in V3 this will be allowed. Check with your Technical Account Manager about which version you are on.