html bar line code example Example 1: horizontal line html <!-- code --> <hr> <!-- code --> Example 2: hr tag html <hr> <!-- A horizontal line -->