25. Februar 2023

HTML5-Video-Template

Analog zu dem Script, das ich häufig nutze um Fotos bereitzustellen, nutze ich folgenden Code um Videos abszustimmen oder bereitzustellen:

<style>
body {font-family:sans-serif; background: #eee;}
.videowrap {margin: 0 auto;max-width: 960px;padding: 30px 20px;}
video {width: 100%;}
small a{color:#666; }
</style>

<div class="videowrap">
<h2>Videotitle</h2>
<video controls>
<source src="video.mp4" type="video/mp4"> 
</video>
<small><a href="video.mp4" download>Download</a></small>
</div>

Das Snippet gibt es hier auch als Download: Download Videosnippet


War dieser Artikel hilfreich?




Nächster Artikel
4 praktische .htaccess-Snippets


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert