Https://www.codecademy.com/courses/learn-html-css/lessons/common-elements/exercises/link-at-will?action=lesson_resume


#1

https://www.codecademy.com/courses/learn-html-css/lessons/common-elements/exercises/link-at-will?action=lesson_resume
plz solve this i stucked here any one can please help me?


#2

Note: including codes by between < > is not allowed in description in codecademy so i will be using ' ' instead of <>. Please understand.

By using 'a'.....'/a' You can convert any thing into a link for another website or other things.
In this particular course it says us to convert a image into link.
For that you need to specify or give the link that is to be opened inside 'a' like this: 'a href = "https://en.wikipedia.org/wiki/Opuntia" ' once link is written you can use target attribute to open the link in new tab like this: ' a href = "https://en.wikipedia.org/wiki/Opuntia" target = _blank '
Now to add the link to the image, you can put the link of image between 'a' and '/a' .Like i have done below please look i have given the link to the image by using ' img src = "link" alt = "bear" ' between 'a' and '/a'
That's it about this exercise.

<a href = "https://en.wikipedia.org/wiki/Opuntia" target = "blank"> <img src = "https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-imagebrownbear.jpg" alt = "This is a brown bear.It's found in Caneda" />
Bear


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.