Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 43 - 2609_Logiccode
P. 43

    To add music or audio to your web page, you need an audio/video file in one of the following
                     formats:

                            Format                File extension                         Description

                                                                         Waveform Audio File Format (WAV) is an
                                                                         audio format. It was developed by IBM and
                      WAV                      .wav                      Microsoft. Files in this format play well on

                                                                         Windows, Macintosh and Linux operating
                                                                         systems.

                                                                         Ogg Vorbis (OGG) was developed by the
                      OGG                      .ogg
                                                                         Xiph.Org Foundation. It is an audio format.

                                                                         MPEG Audio Layer 3 (MP3) is an audio
                                                                         format supported by all web browsers. It is
                      MP3                      .mp3
                                                                         an audio format. These are small files with
                                                                         high quality.

                                                                         MPEG-4 Part 14 (MP4) is a video format, but
                      MP4                      .mp4
                                                                         can also be used for audio.

                                                                         It is a video format supported by all
                      WEBM                     .webm
                                                                         browsers.

                                                                         It is a proprietary video format introduced by
                      AVI                      .avi
                                                                         Microsoft.

                     The HTML tag, used  for adding  audio  files to  a web page,  is  <AUDIO>  and for adding  video
                     is <VIDEO>. The <AUDIO> and <VIDEO> tags can play all the supported audio and video formats
                     listed in the table above.
                     The attributes used with these tags are:

                             Attribute                   Value                             Description
                              Name

                      SRC                       URL or path of the file It specifies the path or URL of the file.

                                                                           It specifies whether the controls are shown
                      CONTROLS                  None
                                                                           along with audio or video.

                                                                                               Making Web Pages Alive  41

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