如何让YouTube的嵌入代码针对HTML5进行验证?

anj*_*esh 3 youtube flash html5

在我添加YouTube的嵌入代码之前,我的页面验证了HTML5的免费错误.

# Line 140, Column 132: Stray end tag param.

    …O30JM&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="tru

# Error Line 140, Column 183: Stray end tag param.

    …llowFullScreen" value="true"></param><param name="allowscriptaccess" value="a

# Error Line 140, Column 238: Stray end tag param.

    …scriptaccess" value="always"></param><embed src="http://www.youtube.com/v/1rW

# Error Line 140, Column 430: Stray end tag embed.

    …ways" allowfullscreen="true"></embed></object>
Run Code Online (Sandbox Code Playgroud)

有没有办法让对象,嵌入和参数标签验证HTML5?

ano*_*ard 5

删除结束标记并用自关闭标记替换它们.

例如.

<embed ...></embed>

<embed ... />
Run Code Online (Sandbox Code Playgroud)