Documente Academic
Documente Profesional
Documente Cultură
Prima modalitate
ar fi cu ajutorul tagului <embed/>. Acest tag nu are nevoie de un altul de
inchidere, functioneaza in mare masura la fel ca si un tag de introducere a unei
fotografii.
HTML
<embed src="example.mpeg" autostart="false" HEIGHT=60 WIDTH=144/>
Extensi video suportate de tagul embed
Acestea sunt dupa cum urmeaza:
HTML
<object width="425" height="344"
data="https://www.youtube.com/embed/N4koEPJ0bjU"></object>
HTML
<embed src="https://www.youtube.com/embed/N4koEPJ0bjU" allowfullscreen="true"
width="425" height="344">
HTML
<iframe width="425" height="344" src="https://www.youtube.com/embed/N4koEPJ0bjU"
frameborder="0" allowfullscreen></iframe>
Dupa cum poti observa , acest iframe are o lungime si latime fixa si nu va fi
responsive. Pentru al face responsive trebuie sa il pui intr-un copntainer dupa cum
urmeaza.
HTML
<div style="position:relative; padding-bottom:56.25%; padding-top:30px; height:0;
overflow:hidden;">
<iframe width="425" height="344"
src="https://www.youtube.com/embed/N4koEPJ0bjU" frameborder="0" allowfullscreen
style="position:absolute; top:0; left:0; width:100%;
height:100%;">
</iframe>
</div>