Embed Audio And Video In HTML

The HTML <embed> Element represents an integration point for an external application or interactive content (in other words, a plug-in).


Embedd Video content


So the code to Embedd a Video will look something like this:
<html> <head>
<title>My first web page </title>
</head>
<body>
<video width="320" height="240" 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>

Result to the above code:




Embedd Audio content


So the code to Embedd an Audio will look something like this:
<html> <head>
<title>My first web page </title>
</head>
<body>
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</video>
</body>
</html>

Result to the above code:




    Drawbacks:
  • • If the browser does not support Flash, the video will not play
  • • iPad and iPhone do not support Flash videos.


Guys follow the various other tutorials to catch on further in html coding and designing!!!