Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 103 - 2612_Digimind
P. 103

    <BODY>

                     <H1 STYLE = "text-align:center">Valley of Flowers </H1>
                     <IMG  Style = "Border:4px  Solid  Black;  Height:200px;  Width:250px;"
                     src = "D:\Valley_of_Flower.jpg" >
                     <br>

                     <A HREF = "https://uttarakhandtourism.gov.in/destination/valley-of-
                     flowers">
                     Click here to visit official website </A>
                     </BODY>

                     </HTML>

                               EMBEDDING AUDIO AND VIDEO

                     The HTML5 <AUDIO> and <VIDEO> tags allow us to add media to a website. To add media, we are
                     required to set the SRC attribute to identify the media source and include the controls attribute
                     so the user can play and pause the media whenever required. The AUTOPLAY attribute is used to
                     play audio/video automatically when the web page opens.

                     EMBEDDING AUDIO

                     We use <audio> tag to embed sound content in an HTML document.

                     <!DOCTYPE HTML>
                     <HTML>
                     <HEAD>

                     <TITLE> Audio </TITLE>
                     </HEAD>

                     <BODY>
                     <H1 STYLE = "text-align:center; color:red">
                     Welcome to the Musical World

                     </H1>
                     <P STYLE = "text-align:center">
                     <IMG  SRC  = "D:\MusicalNote.
                     Jpg">

                     </P>
                     <AUDIO  SRC  = "D:\flute.mp3"
                     AUTOPLAY CONTROLS>
                     </AUDIO>

                     </BODY>
                     </HTML>

                                                                                       Images, Links and Forms in HTML5  101

| 98 99 100 101 102 103 104 105 106 107 108 |