Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
layout_html5_a [2014/11/10 16:25]
supadmin
layout_html5_a [2014/11/10 16:28] (Version actuelle)
supadmin
Ligne 84: Ligne 84:
         <​p>​Aside 1 INDEX as aside  commentaire sur article<​br>​         <​p>​Aside 1 INDEX as aside  commentaire sur article<​br>​
         <a href="#">​Accueil</​a> ​ juste un lien dans le text</​p>​         <a href="#">​Accueil</​a> ​ juste un lien dans le text</​p>​
 +        <​p>​The optional poster attribute can be used to specify an image which will be displayed in place of the video before the video has begun playing. Although there are some video formats that support their own poster frame feature, such as MPEG-4, this provides an alternative solution that can work independently of the video format.
 +
 +It is just as simple to embed audio into a page using the audio element. Most of the attributes are common between the video and audio elements, although for obvious reasons, the audio element lacks the width, height, and poster attributes.
 +
 +<audio src="​music.oga"​ controls>​
 +<a href="​music.oga">​Download song</​a>​
 +</​audio>​
 +
 +HTML 5 provides the source element for specifying alternative video and audio files which the browser may choose from based on its media type or codec support. The media attribute can be used to specify a media query for selection based on the device limitations and the type attribute for specifying the media type and codecs. Note that when using the source elements, the src attribute needs to be omitted from their parent video or audio element or the alternatives given by the source elements will be ignored.
 +        </p>
     </​aside> ​     </​aside> ​
      <​section>​      <​section>​
Ligne 121: Ligne 131:
         <a href="#">​Accueil</​a> ​ juste un lien dans le text <​br> ​         <a href="#">​Accueil</​a> ​ juste un lien dans le text <​br> ​
         se termine avec fin article</​p>​         se termine avec fin article</​p>​
 +        <​p>​The optional poster attribute can be used to specify an image which will be displayed in place of the video before the video has begun playing. Although there are some video formats that support their own poster frame feature, such as MPEG-4, this provides an alternative solution that can work independently of the video format.
 +
 +It is just as simple to embed audio into a page using the audio element. Most of the attributes are common between the video and audio elements, although for obvious reasons, the audio element lacks the width, height, and poster attributes.
 +
 +<audio src="​music.oga"​ controls>​
 +<a href="​music.oga">​Download song</​a>​
 +</​audio>​
 +
 +HTML 5 provides the source element for specifying alternative video and audio files which the browser may choose from based on its media type or codec support. The media attribute can be used to specify a media query for selection based on the device limitations and the type attribute for specifying the media type and codecs. Note that when using the source elements, the src attribute needs to be omitted from their parent video or audio element or the alternatives given by the source elements will be ignored.
 +        </p>
     </​aside> ​     </​aside> ​
     </​article>​     </​article>​