LECTURE # 14
15/8/2023
Question #1: Why is iframe tag used for?
Answer: Iframr tag is used to embed a YouTube video in html language.
Click Share option under a YouTube video and then go for embaded option. Copy the link and paste in iframe tag.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width= , initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Assignment number 1</h1>
<iframe src="https://www.youtube.com/embed/oGBDdTEv66E" title="YouTube video player"
frameborder="0" allow="accelerometer; autoplay;
clipboard-write; encrypted-media; gyroscope; picture-in-picture;
web-share" frameborder="0"></iframe><br><br>
</body>
</html>