@4pip/

Youtube filmpjes toevoegen

HTML, CSS, JS

Youtube filmpjes toevoegen in HTML

fork
loading
Files
  • index.html
  • script.js
  • steen.jpg
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
<style>
  body{background-image:url("steen.jpg");}
  h1{font-family:Arial;margin:20px;}
  h1{font-family:Arial;margin:20px;}
  iframe{margin:20px;border:Red solid 10px;}
</style>

<a href="https://www.youtube.com/watch?v=fGNZX9WJWsE">
<h1>Bekijk de video</h1>
  </a>
<h1>Mijn favoriete fragmenten</h1>
  <iframe width="250" height="150" src="https://www.youtube.com/embed/fGNZX9WJWsE" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  <iframe width="250" height="150" src="https://www.youtube.com/embed/NgUlTAIHTwk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

<h2 style = "color:yellow;">Microbit films </h2>
  <iframe width="250" height="150" src="https://www.youtube.com/embed/oYICGUWQBRw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  <iframe width="250" height="150" src="https://www.youtube.com/embed/Ie5ghUgF2Tc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

<h2 style = "color:Blue;">Nog meer microbit films </h2>
<iframe width="150" height="75" src="https://www.youtube.com/embed/4l31LLKwPtk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="150" height="75" src="https://www.youtube.com/embed/w187N0QEfos" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe width="150" height="75" src="https://www.youtube.com/embed/WLfwvUd4-1E" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

</html>

result
console