JSFiddle - React, Tailwind, and code Playground

by Researcher

HTML

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Dive Into HTML5</title>
  <script src="https://raw.github.com/Modernizr/Modernizr/master/modernizr.js"></script>
</head>
<body>
    text
</body>
</html>

JavaScript

//HTML5 VIDEO !!!
    
if (Modernizr.video) {
  // let's play some video! but what kind?
  if (Modernizr.video.webm) {
    // try WebM
      alert("webm");
  }
  if (Modernizr.video.ogg) {
    // try Ogg Theora + Vorbis in an Ogg container
      alert("ogg");
  } 
  if (Modernizr.video.h264){
    // try H.264 video + AAC audio in an MP4 container
      alert("h264");
  }
}