Multiple choice

What is the correct HTML for creating a hyperlink?

  1. <a url = "http:www.company.com"> company.com </a>

  2. <a> http://www.company.com </a>

  3. <a href = “http://www.company.com&lt;span class="MsoHyperlink">”> Company </a>

  4. <a name = http://www.company.com? Company.com<(a)>

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

<a href = http://www.company.com> company </a> the format is only correct to create a hyperlink. Because we use <a href = “Link”> link name</a> URL to be displayed on browser. Standard tag to make the text as hyperlink, whereas < a url > and <a> and <a name> are invalid tags.