Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is the correct HTML for creating a hyperlink ?

  • A.<a name = "">A</a>
  • B.<a>B</a>
  • C.<a href="http://www.example com"> example </a>
  • D.<a url="http://www.example com"> example</a>

Answer: C

The correct HTML is <a href="http://www.example com"> example </a>.

A hyperlink is made with the anchor element a, and its destination is given in the href attribute; the text between the tags is what the reader clicks.

The name attribute once marked a target within a page rather than creating a link, a bare <a> with no attribute links nowhere, and there is no url attribute in HTML.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.