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文件,我如何修复这个foraudio和视频?
1 个解决方案
#1
1
The video
element can’t have a type
attribute.
视频元素不能具有type属性。
Maybe you want to use the source
element as child of video
?
也许你想使用源元素作为视频的孩子?
#1
1
The video
element can’t have a type
attribute.
视频元素不能具有type属性。
Maybe you want to use the source
element as child of video
?
也许你想使用源元素作为视频的孩子?