You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <source> tag can be used with the <video>, <audio> and <picture> tag to provide several file formats depending on browser support.
The "type" attribute is used to indicate to the browser the mime type of the resource. If this attribute is not specified, the browser will have to communicate with the server, or even download the resource, to determine if it can support it.
Le type MIME de la ressource, éventuellement complété d'un paramètre codecs. La RFC 4281 indique comment indiquer des codecs. Si l'attribut type n'est pas défini, le type de média est récupéré depuis le serveur et le navigateur vérifie s'il peut le gérer. Si le fichier ne peut être utilisé, la source suivante est contrôlée et ainsi de suite. Si l'attribut type est indiqué, le navigateur le compare avec la liste des types qu'il prend en charge, si le type n'est pas reconnu, le serveur n'est pas interrogé et le navigateur analyse l'élément
The "type" attribute should therefore always be specified.
<!-- Bad: "type" is not specified. --><video><sourcesrc="path/to/video.webm"><sourcesrc="path/to/video.m4v"></video>
<!-- Good: "type" is specified. --><video><sourcesrc="path/to/video.webm" type="video/webm"><sourcesrc="path/to/video.m4v" type="video/mp4"></video>
The text was updated successfully, but these errors were encountered:
The
<source>
tag can be used with the<video>
,<audio>
and<picture>
tag to provide several file formats depending on browser support.The "type" attribute is used to indicate to the browser the mime type of the resource. If this attribute is not specified, the browser will have to communicate with the server, or even download the resource, to determine if it can support it.
The MDN French translation about the "type" attribute is very clear:
The "type" attribute should therefore always be specified.
The text was updated successfully, but these errors were encountered: