Hit dice are used to determine the amount of hit points you have, they are also used as a limiting mechanism for spells. A Player Character gets 1 Hit Die per character level, making the Hit Dice of a character equal to their character level; however the size of the hit dice and the number of hit points given depends on the Player Character's class. Monsters in Dungeons and Dragons Online have standard hit dice for their creature type; see Monster Manual.
 Hit Points
Dungeons and Dragons Online follows the maximum hit point rule: you always gain the maximum number of hit points at each level. For instance, a Barbarian with a d12 hit die will gain 12 hit points at each level (plus its constitution modifier).
Hit dice refer to how many dice were used to generate your HP and it is often a limiting mechanism for spells.
Developers have confirmed that, even if monsters have inflated hit points, their hit dice remain the same. Developers took monsters from the Monster Manual and then added additional HP, similar to the Heroic Durability feat that all players receive upon creation.[official] This was done in order to keep spells with a hit dice limit like Sleep or Cause Fear useful for as long as possible. Sadly, it makes spells with hit point limits like the power word spells less useful.