What is the correct HTML for creating a hyperlink?
-
<a url="http://www.webdesignerhelp">Web Designer Help</a>
-
<link="http://www.webdesignerhelp"/>Web Designer Help</a>
-
<a link="http://www.webdesignerhelp">Web Designer Help</a>
-
<a href="http://www.webdesignerhelp">Web Designer Help</a>
HTML hyperlinks use the tag with an 'href' attribute: link text. 'url' and 'link' are not valid attributes, and option B has malformed syntax with both 'link=' and ''.
The correct HTML anchor syntax uses the href attribute to specify the link target: <a href="url">text</a>. href stands for 'hypertext reference' and is the only attribute HTML recognizes for this purpose on the <a> tag. The other options use invalid or nonexistent attributes — url=, a malformed tag (the element is for document metadata, not inline hyperlinks, and doesn't take content), and link= are not real HTML attributes, so none of them would render a functioning hyperlink.