Difference between ID.hidden = true VS ID.style.display = 'none'

Setting the hidden property of an ID to true seems to also set the style.display property to none.

Setting the hidden property of an ID to false seems to set the style.display property to block.

Is there a difference between using either of these methods to remove a control from the screen? Especially setting hidden to false, when you really want style.display = flex.

If there is not a difference, then I’d like to use the style.display property exclusively, as that would be the least complicated, and allows for other than block layouts.

Notice I left out the visibility=hidden property as it does “render” the item as far as flowing content, but the item is not displayed.

For the best control, use control.style.display.

Control.hidden is a simplified version we added to the language to make it easier for ex VB users.