mirror of
https://github.com/atapas/html-tips-tricks.git
synced 2024-11-16 00:38:26 +01:00
html youtube videos
This commit is contained in:
parent
9988da9174
commit
3af69f2756
2 changed files with 36 additions and 0 deletions
|
@ -91,6 +91,10 @@
|
|||
<a href='./lazy-loading/index.html'>
|
||||
Lazy Loading</a> - Lazy Load html images natively
|
||||
</li>
|
||||
<li>
|
||||
<a href='./youtube/index.html'>
|
||||
HTML YouTube Videos</a> - Playing a YouTube Video in HTML
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
|
|
32
youtube/index.html
Normal file
32
youtube/index.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
||||
<title>HTML Tips and Tricks - HTML YouTube Videos</title>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap" rel="stylesheet">
|
||||
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
|
||||
|
||||
<script>
|
||||
function changeValue(event) {
|
||||
let value = event.target.value;
|
||||
let output = document.getElementById('output');
|
||||
output.value = value;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="demo">
|
||||
<a href="../index.html" class="home">
|
||||
<img src="../home.svg" alt="home" />
|
||||
</a>
|
||||
<h1>Playing a YouTube Video in HTML</h1>
|
||||
<iframe width="500" height="315" src="https://www.youtube.com/embed/tgbNymZ7vqY">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in a new issue