iframe syntax - HTML

Q.  Which of the following is the correct syntax to add an iframe?
- Published on 26 Aug 15

a. <iframe src = " demo_iframe.htm " style = " border:none " > < / iframe >
b. <iframe src = " demo_iframe.htm " style = " border:5px dotted red " > < / iframe >
c. <iframe src = " demo_iframe.htm " width = " 200 " height = " 200 " > < / iframe >
d. <iframe src = " URL " >< / iframe>

ANSWER: <iframe src = " URL " >< / iframe>
 

    Discussion

  • Nirja Shah   -Posted on 10 Nov 15
    - An <iframe> tag is used to specify an inline frame.

    - This inline frame is used to embed another document within the current HTML document.

    - Syntax
    < iframe src = " URL " ></ iframe>

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)