Answer & Solution
Answer: Option B
Solution:
By setting the CSS display property to "none" using JavaScript, you can hide an HTML element. For example, element.display = "none"; sets the display of the element to none, effectively hiding it from the view.