Tuesday, 27 December 2011

HTML5 - Video elements

 video element
  • For showing a video/movie there has not been a standard  on a web page.
  • A plug-in (like flash) shows most videos. But, different browsers  have different plug-ins.
  • HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page: the <video> element.
  • The control attribute adds video controls, like play, pause, and volume.

Syntax

<video width="400" height="300" controls="controls">
  <source src="movie.mp4" type="video/mp4" />
  <source src="movie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video> 

Example 

 <!DOCTYPE html>
<html>
<body>

<video width="320" height="240" controls="controls">
  <source src="movie.mp4" type="video/mp4" />
  <source src="movie.ogg" type="video/ogg" />
  Your browser does not support the video tag.
</video>

</body>
</html>

2 comments:

  1. Learn digital marketing masters course online for free. Stop wasting your time in searching apply now limited seats are left click the links below to register-
    1)branding agencies in hyderabad
    2)top digital marketing agency in bangalore
    3)best digital marketing company in hyderabad
    4)best digital marketing company in bangalore
    5)digital marketing in Ahmedabad

    ReplyDelete
  2. I absolutely love the content that you share with us, It's easy to understand your article and it makes my work easier. Thank you for sharing your insights with us.
    Valentine’s Day Chocolate Gifts
    Valentine Chocolate Day Gift
    Chocolate Day Gift
    Valentine’s day gifting ideas
    Gift Ideas

    ReplyDelete