Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 44 - 2609_Logiccode
P. 44

    Attribute                    Value                             Description
                               Name

                                                                            It is used to play the video in a loop
                       LOOP                       None
                                                                            continuously.

                                                                            It is used to play the video automatically as

                                                                            the page loads. Since this attribute is not
                       AUTOPLAY                   None                      supported by browsers like Chrome, Opera
                                                                            and Microsoft Edge, you need to add the
                                                                            word MUTED after AUTOPLAY.

                                                                            These attributes are used to adjust the
                       WIDTH, HEIGHT              Pixel value
                                                                            height and width of the video window.

                      HTML5 has introduced  the  <SOURCE> tag  to  specify  the  source  of the  audio  or video  file.
                      It is an empty tag.

                      The attributes to be used with the <SOURCE> tag are:

                              Attribute                    Value                             Description
                               Name

                                                                            It specifies the path to the audio or video to
                       SRC                        URL or path of the file
                                                                            be inserted.

                                                                            It specifies the Multipurpose Internet Mail
                       TYPE                       File type                 Extensions (MIME) type of the file to be

                                                                            played.

                      Note that the SRC attribute can be used with the AUDIO and VIDEO tag directly also. Using it with
                      a nested <SOURCE> tag allows you to specify multiple media resources for media elements, such
                      as <VIDEO> and <AUDIO>, which the browser may choose from, based on browser support or
                      viewport width. The browser will choose the first <SOURCE> it supports.
                      Code 10.  Write the HTML code to present the given web page using the <AUDIO> tag to embed

                                audio.

                      <!DOCTYPE HTML>

                      <HTML>

                      <HEAD>
                      <TITLE>Using Audio Tag</TITLE>

                      </HEAD>

                       42   Premium Edition-VII

| 39 40 41 42 43 44 45 46 47 48 49 |