w3 href tag code example Example 1: html a href <a href="http://example.com" >Link text</a> Example 2: html a tag <a href=""></a>