Guys i know stack overflow is not for debugging but i have my final high school examinations tomorrow and i am desperate, please dont downvote me. I have been trying to run this code for so long and now i am almost at verge of tears. Please do help. I am trying to embed a youtube video in my webpage and i have no idea what i am doing wrong, please rectify my code. Thanks a lot.
<html>
<body>
<script language = "javascript">
<embed src="https://www.youtube.com/embed/F9Bo89m2f6g" allowfullscreen="true" width="425" height="344">
</embed>
</script>
</body>
</html>
答案 0 :(得分:1)
问题是您将minimumLineSpacing
包装到embed
元素中。删除script
元素包装器,它将起作用:
script
&#13;
这里不能作为代码片段嵌入,但原因不同。 https://jsfiddle.net/cv1hwoxu/
答案 1 :(得分:0)
<html>
<body>
<embed src="https://www.youtube.com/embed/F9Bo89m2f6g" allowfullscreen="true" width="425" height="344">
</body>
</html>
这应该有效,有关标记的更多信息:https://www.w3schools.com/tags/tag_embed.asp
答案 2 :(得分:-1)
<html>
<head>
</head>
<body>
<script language = "javascript">
</script>
<embed width="425" height="344" src="https://www.youtube.com/embed/F9Bo89m2f6g">
</body>
</html>
这会奏效。它没有用,因为你把它包含在脚本中