h1 in html meaning code example Example 1: how to do h1 tag <h1> Sample Text </h1> Example 2: h1 tag html <h1> heading 1</h1>