+ 1
What does iframe element need a closing tag? What can I put between?
3 Antworten
+ 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?
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
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