What is the difference between <a href...> and <link href...>? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

What is the difference between <a href...> and <link href...>?

15th Apr 2018, 3:39 PM
Esmail A Esmail‎
Esmail A Esmail‎ - avatar
4 Antworten
+ 4
In HTML, the <a> tag is used for creating a link on your webpage that will send your user to another website after clicking on it. The <link> tag is used for connecting an external CSS document into your code rather than writing it directly into the HTML using the <style> tag.
15th Apr 2018, 3:46 PM
Faisal
Faisal - avatar
+ 3
If you're talking about making a photo send you to another website when you press it, then all you would need to do is surround the <img> tag around the <a> tag, providing the link in the <a> tag to the website with the image and the source of the image in the <img> tag. <a href = "example.com"> <img src = "example.com/jpg" /> </a>
15th Apr 2018, 3:53 PM
Faisal
Faisal - avatar
+ 1
and how can we use style tag for connecting CSS document directly
3rd Aug 2018, 4:52 AM
Ahmar Farooq
Ahmar Farooq - avatar
0
good and how can I insert a link to a photo?
15th Apr 2018, 3:50 PM
Esmail A Esmail‎
Esmail A Esmail‎ - avatar