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

Discussion

While linking to the internet mail system which of the following 'mailto' anchors is correct ?

  • A.\(\lt\)a href = "mailto : amitkumar @ gmail.com"\(\gt\) send a page to amit \(\lt\)/a\(\gt\)
  • B.\(\lt\)a href = "emailto : amitkumar @ gmail.com"\(\gt\) send a page to amit \(\lt\)/a\(\gt\)
  • C.\(\lt\)a href : "mailto : amitkumar @ gmail.com"\(\gt\) send a page to amit \(\lt\)/a\(\gt\)
  • D.\(\lt\)a href : "emailto : amitkumar @ gmail.com"\(\gt\) send a page to amit \(\lt\)/a\(\gt\)

Answer: A

The correct anchor is the first one, with href = "mailto : ...".

A link to the mail system is an a element whose href attribute is assigned with an equals sign and whose value uses the mailto URL scheme followed by the address, so that clicking it opens a new message to amitkumar@gmail.com. The spaces around the colon and the @ are how the paper sets the text; a working link writes mailto:amitkumar@gmail.com without them.

'emailto' is not a URL scheme, so the second and fourth anchors fail. 'href :' is not valid attribute syntax, since an attribute takes its value with =, so the third and fourth fail as well.

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

Post your comment

Please log in or register to post a comment.