Iframe is a tag which is represent the video by using src attribute. When we show the other site some video in our site then we use the iframes. This iframes tag is more use full tag to show the video into our web site. We can also set the other attribute in the iframes tag like height width style etc. Now given bellow the example code and explain the code:
<!DOCTYPE html> <html> <head> <title>This is HTML</title> </head> <body> <br/> <!--iframe tag--> <iframe style="border:5px solid red" src="https://www.youtube.com/embed/d-x3gXrNtfc"></iframe> </body> </html>
In this code we can see the firearm tag code and we can see the “src” attribute also use the style attribute for the border which color is red.