+ 1

What does iframe element need a closing tag? What can I put between?

12th Jul 2020, 3:38 PM
Karak10
Karak10 - avatar
3 Respuestas
+ 1
Varun N thats not what I asked, I ask why should the element be closed? Can we put anything between <iframe> and </iframe>? Or does it only gave a closing that because its a block element? Also, I also wonder why <textarea> has a closing tag, <input> doesn't, so is there a reason <textarea> does?
12th Jul 2020, 7:19 PM
Karak10
Karak10 - avatar
0
Karak10 <iframe> tag is a block element so it needs a closing tag. Using iframe tag u can embed other webpages to our webpage Like youtube ,google or any website. check this out here i have embeded a youtube video using iframe tag https://code.sololearn.com/WhJL60hEF5ba/?ref=app
12th Jul 2020, 3:42 PM
Varun N
Varun N - avatar
0
Karak10 this may help you https://blog.teamtreehouse.com/to-close-or-not-to-close-tags-in-html5 and im sorry iframe is a inline element
12th Jul 2020, 7:24 PM
Varun N
Varun N - avatar