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