Answer: the MAC (Media Access Control) address
Answer:
The Correct syntax for inserting an image as hyperlink is given in explanation section
Explanation:
To make an image act as a hyperlink, place the image element within the HTML anchor "<a></a>" element.
The syntax of inserting image hyperlink in XHTML is given below.
<a href = "link_that_can_be_accessible"><img src="source of image" alt="display name if image not shown in the browser" border="0"/></a>
for example lets insert image as hyperlink
<a href="ajax.html"><img src="logo.gif" alt="AJAX" border="0" /></a>
The default appearance is a blue border around the image. Specifying border="0" removes the border around the image.
if you want to insert image from another folder then the image hyperlink looks like this:
<a href="ajax.html"><img src="/images/html5/logo.gif" alt="AJAX" border="0" /></a>
If you want to insert image from another server then image hyper link looks like this:
<a href="ajax.html"><img src="https://www.myExample.com/images/html5/logo.gif" alt="AJAX" border="0" /></a>
Answer:
public class Invitation
{
private String hostname;
private String address;
public Invitation(String n, String a)
{ // constructor that accepts two strings.
hostname = n;
address = a;
}
public String getHostname()
{
return hostname;
}
public void setAddress(String a)
{
address = a;
}
public String invite(String guest)
{
return "Hello" +guest+ ", you are invited to my party at " +address+". "+hostname+".";
}
public Invitation(String host, String address)
{
this.address = address;
this.hostname = host;
}
}
Explanation:
The Java program defines a class called "Invitation". The class constructor has two string arguments or parameters for the host of the event and the address. The invite method is used to generate the string invite message with the name of the guest as the argument. Use the "setAddress" method to set a new location of the event and the "getHostname" to get the name of the event host.