Can <a></a> be used to make links to videos? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Can <a></a> be used to make links to videos?

This is my code: <a href="" target="_blank"> <p> This is a funny cat place :) </p> </a> When I run it it shows up, but there's a cross next to that line saying, "Named entity expected. Got none."

23rd Mar 2017, 12:42 AM
3 Answers
+ 1
put the <p>outside the <a> block instead, or better yet if a is inside another block like a div, change p to span instead
23rd Mar 2017, 1:07 AM
William La Flamme
William La Flamme - avatar
+ 1
Clever marketing of Charlie Schmidt's the keyboard cat debut video. For advance HTML coding
23rd Mar 2017, 2:52 AM
Reinard Cox
you can iframe it like this: <iframe src="" width=560 height=315 frameborder="0" allowfullscreen></iframe> Just be sure that it's "www" not "m" or the header will not allow the frame to work
23rd Mar 2017, 5:21 AM
sniperisdemoman - avatar