HTML YouTube
YouTube in HTML?
HTML YouTube The Simple way to play videos in HTML, is to use YouTube.
Embedding a YouTube video
Embedding a YouTube video! Nice choice.
If you want to add a bit more styling or structure, here's a slightly enhanced version:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Embedded YouTube Video</title>
<style>
body {
font-family: 'Arial', sans-serif;
text-align: center;
margin-top: 50px;
font-size: 18px;
}
iframe {
width: 70%;
height: 400px;
display: block;
margin: auto;
margin-top: 20px;
border: 2px solid #e74c3c; /* Red color for iframe border */
border-radius: 5px;
}
</style>
</head>
<body>
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/_FbtAVeTZmQ" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen>
</iframe>
</body>
</html>