sample html link code example Example 1: hyperlink html <a href="url">link text</a> Example 2: a href code <a href="link">Text</a>