Syntax of iframe & embed HTML tags | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Syntax of iframe & embed HTML tags

plz tell the syntax of embed & iframe tags . also how to resize the tags.

18th Feb 2017, 12:32 AM
The Smart Amazing Shaurya
The Smart Amazing Shaurya - avatar
3 Answers
+ 1
If I understood your question correctly, the syntax of embed tag: <embed type="video/quicktime" src="movie.mov" width="640" height="480">. The syntax of iframe tag: <iframe src="/default.asp" width="200" height="200"> </iframe>. The height and width displaying in pixels.
19th Feb 2017, 2:04 PM
Kateryna Komareus
Kateryna Komareus - avatar
+ 1
thanks, no embed end tag ?? can we use a URL in src ??
20th Feb 2017, 10:37 AM
The Smart Amazing Shaurya
The Smart Amazing Shaurya - avatar
0
The closing tag is optional in «embed», you can use <embed> without it. And yes, you can use the URL in src.
20th Feb 2017, 11:15 AM
Kateryna Komareus
Kateryna Komareus - avatar