518,775 views
28 votes
28 votes
Describe three different types of links that you might include on a webpage. Give examples of what their HTML code might look like.

User Alex Ryltsov
by
3.0k points

2 Answers

15 votes
15 votes

1. The <img> tag is used for displaying images on a web page.

2. The <a> tag creates an anchor element. It’s one of the most important HTML elements because this is how HTML documents link to other resources.

3. Rel attribute describes the relationship between the current document and the linked resource. A link to the external style sheet file is required in the head section of every HTML page.

User Baraa Aljabban
by
2.7k points
16 votes
16 votes

1)

I would use the <img> tag. The <img> tag is used for displaying images on a web page. Adding this tag to an HTML document will cause the client to send a request to the URL specified by src. The server, if it can, will use the URL ://..//. to find the image and send it back to the client. When the client receives the image, the image will be displayed on the page.

2)

I would use the <a> tag. The <a> tag creates an anchor element. It’s one of the most important HTML elements because this is how HTML documents link to other resources. This would create a link that, when clicked, would take the user to ://.-.. The opening tag has an attribute called href. This attribute is given a value, which is a URL to some other kind of resource, which can be another HTML document, an email address, or a file. As with links to URLs, the phone number or email address goes in the href attribute. Precede an email address with mailto: . For a telephone number, use tel: .

3)

I would use the attribute rel. This attribute describes the relationship between the current document and the linked resource. A link to the external style sheet file is required in the head section of every HTML page.

The examples are provided in the pictures.

Hope this helps :)

Describe three different types of links that you might include on a webpage. Give-example-1
Describe three different types of links that you might include on a webpage. Give-example-2
Describe three different types of links that you might include on a webpage. Give-example-3
User Jensdc
by
3.4k points