html <h>> tag definition code example Example 1: h1 tag html <h1> heading 1</h1> Example 2: how to write h1 tag in html <h1>This is an h1(Heading 1) tag <h1>