a href link in html code example Example 1: html a href <a href="http://example.com" >Link text</a> Example 2: hyperlink html <a href="url">link text</a>