简体   繁体   English

目前,元素视频上不允许使用属性类型。 如何解决这个错误?

[英]Attribute type not allowed on element video at this point. how to fix this error?

I'm getting an error when validating audio & video in my HTML markup using the W3C validator . 使用W3C验证器验证 HTML标记中的音频和视频时出现错误。

      Validation Output: 1 Error

        Error Line 28, Column 96: Attribute type not allowed on element video at this                   point.
   …ls="controls"  poster="Images/egg.jpg" src="Misc/chicken.mp4" type="video/mp4">
       Attributes for element video:

     Global attributes
       src
       crossorigin
       poster
       preload
       autoplay
       mediagroup
       loop
       muted
       controls
       width
       height

how do i fix this foraudio & video if i use mp3 & mp4 files?? 如果我使用mp3和mp4文件,该如何修复音频和视频?

The video element can't have a type attribute. video元素不能具有type属性。

Maybe you want to use the source element as child of video ? 也许您想将source元素用作video元素

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 验证错误:“此时元素输入不允许属性只读。” - Validation error: “Attribute readonly not allowed on element input at this point.” 我不明白这个错误“此时元素 iframe 上不允许使用属性 iframe”。 w3c - I don't understand this error "Attribute iframe not allowed on element iframe at this point." w3c W3C验证错误:“目前,元素meta上不允许使用属性名称。” - W3C validation error: “Attribute name not allowed on element meta at this point.” HTML 5验证失败,因为“此时元素a上不允许属性addthis:url”。 - HTML 5 Validation fails for “Attribute addthis:url not allowed on element a at this point.” 错误:目前,元素li上不允许使用属性audio_url - Error: Attribute audio_url not allowed on element li at this point 验证错误:此时元素输入上不允许使用 onfocusout 属性 - Validation error: Attribute onfocusout not allowed on element input at this point 此时元素img上不允许使用属性img。 - Attribute img not allowed on element img at this point.Error 此时,元素按钮上不允许使用属性href - Attribute href not allowed on element button at this point 此时,元素li上不允许使用属性类别 - Attribute category not allowed on element li at this point “此时元素div上不允许使用属性名称” - “Attribute name not allowed on element div at this point”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM