Saturday, July 19, 2014

Audios and Videos



  • all of us wants to make our websites more active and more entertainment and  sure whats is more fun than music and videos you can show your audience and website users the songs you may like maybe it'll be away to increase the number of your website readers "not all readers like this especially when the music play automatically when they open your website"
  • for including audios and videos in our webpages we should use a specific tag which is <embed>
  • whats <embed> ?
  • this tag is used to be a container of non-HTML content just like music,videos,flashs.....etc all these stuff aren't HTML elements or objects thats why we should use <embed> to implement them in our webpage and just like any tag in HTML it has some attributes for exampe:


  1. width :its the width of the audio/video controllers "play/pause buttons....etc"
     2.  height:the height of audio/video controllers

     3.  src : its the URL of your audio/video

  • Lets see this example:
                                           

               and it'll looks like this :
  • one important thing that you should know that not all browsers support this if it didn't work in your browser then you must upgrade it and its even works on internet explorer hahahh imagine

No comments:

Post a Comment