Page 31 - Learn To Use HTML and CSS
P. 31

So You Want to Learn to Use HTML and CSS – Version 2020-06-12a                        Page 21
               Chapter 2 — Adding Images, Media, Color, and Font Effects


             Free








             eBook









             Edition








            Please support this work at




                                  http://syw2l.org
                        Illustration 5: Page with Audio and Text


                                                                               Free
               Adding Videos to Your Page

                                                                                                            34
               The <video>...</video> tag functions very similar to the <audio>...</audio> tag.
               The attributes autoplay and controls function in the same fashion. File formats are
               extermely important when you are inserting a video. There are two ways to write a
               <video>...</video> tag. The first is appropriate when the video has only one format, and
                                                                   eBook
               is written like this:


                <video src="videofile.mp4">Your browser does not support the video
                element</video>


                                                                Edition
               For maximum compatibility you should use the multi-format <video>...</video> tag:



               34   https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

               Copyright 2020 — James M. Reneau PhD — http://www.syw2l.org — This work is
               licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
   26   27   28   29   30   31   32   33   34   35   36