0

Links in HTML?

I don’t understand how to add links in HTML, I know the tags to use and the attributes but i just don’t get it. Am I supposed to create my own link? If so how do I do that. I added a preexisting link to the href attribute using the <a> tag and ran the code but the output came out empty. Nothing showed!

28th Oct 2022, 6:12 PM
Kelechi Chibundu
2 Answers
+ 2
Links can point to a completely different internet domain, like https://google.com or to another webpage on the same server, or even a specific position within the same page (like a table of contents can redirect to a chapter). If you save your code in the sololearn playground and you insert the link in your comment (use the plus sign icon) then people can review and tell you why it's not working.
28th Oct 2022, 6:20 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Show us what you did for your link. From what I've read it does not appear that you added the link's content. Example: <a href="url"> link text </a>
29th Oct 2022, 2:57 AM
Chris Coder
Chris Coder - avatar