Question: what is h2 in javascript?
Answer: h2 object. Browser support: Specifies document heading. There are predefined heading elements that allow document styling in HTML pages similar to Microsoft Office Word or other word processing software, H1 is the main heading and H6 is the deepest sub-heading element.