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