+ 1

What is the correct way to put a link?

<!DOCTYPE html> <html> <head> <title>My Blog</title> <link href="https://fonts.googleapis.com/css?family=Handlee" rel="stylesheet"> </head> <body> <!-- My Skills section start --> <div class="section"> <h1><span>My Skills</span></h1> <ul> <li><a href = "https://www.youtube.com/watch?v=UB1O30fR-EE"</a>HTML</li> <li><a href = "https://www.youtube.com/watch?v=vLnPwxZdW4Y"</a>C++</li> <li><a href = "https://www.amazon.com/Coding-JavaScript-Dummies-Chris-Minnick-ebook/dp/B00SZ637A6"</a>JavaScript</li> <li><a href = "https://www.codecademy.com/learn/learn-c-sharp" target="_blank"</a>C#</li> </ul> </div> <!-- My Skills section end --> </body> </html> I didn't have to put the ending bracket on the end of target="_blank" and if I do put a bracket at the end, like target="_blank">, it doesn't work. Is my code wrong or something?

8th Aug 2020, 9:14 PM
Andy Chang
Andy Chang - avatar
2 Réponses
0
You must put and shloud add text to visible link otherwise you cannot see link. In that tag => <a > this text will appear by underline with link assisiated </a> If no text, you cannot see link.. By above as you mentioned, you can see html as list element but not with link.. So correct way.. <li> <a href = "https://www.youtube.com/watch?v=UB1O30fR-EE"> Html tutorial </a> </li> Same for remaining....
8th Aug 2020, 9:30 PM
Jayakrishna 🇮🇳