Page 153 - CA_165_V2.0_Flipbook
P. 153

<VIDEO> Tag

                      Type           Function           Attributes             Contains            Used Inside
                  Container tag   Embeds video     SRC, CONTROLS,          Optional  fallback  Typically placed within
                                  content in a     AUTOPLAY, LOOP,         content   if  the <BODY> tag.
                                  document.        WIDTH, AND HEIGHT.      video    is   not
                                                                           supported.

                 The following HTML code uses the <VIDEO> tag to insert a video with specified dimensions and controls
                 for playback:

                 <HTML>
                 <HEAD>

                 <TITLE>

                 Inserting video
                 </TITLE>

                 </HEAD>
                 <BODY>

                 <VIDEO WIDTH="500" HEIGHT="300" CONTROLS>

                 <SOURCE SRC="ORANGE.MP4" TYPE="VIDEO/MP4">
                 </VIDEO>

                 </BODY>
                 </HTML>

                 The output of the preceding HTML code is as follows:


















                        Video Player to
                         Play MP4 File















                                                                                            More About HTML      151
   148   149   150   151   152   153   154   155   156   157   158