frame
frame must be in the frameset, the frameset and the body and can not co-exist (that is, once the frame exist, can not exist body, so this basic per person)
Recommended reading: https://www.w3school.com.cn/tags/tag_frame.asp
<html> <frameset cols="25%,50%,25%"> <frame src="frame_a.htm" /> <frame src="frame_b.htm" /> <frame src="frame_c.htm" /> </frameset> </html>
Iframe
Our most well-known is the iframe, and it is very flexible and does not need to be placed in the frameset, it can be placed inside the body.
Recommended reading: https://www.w3school.com.cn/tags/tag_iframe.asp
< HTML > < body > < iframes. Src = "/ i / eg_landscape.jpg" > </ iframes. > < The p- > Some older browsers do not support iframe. </ The p- > < the p- > If not supported, iframe is not visible. </ P > </ body > </ HTML >
embed
Chinese translation of "nesting." Commonly used in embedded plug-ins (browser plug-ins, flash plug-in).
Note: Most modern browsers have been abandoned and canceled support for browser plug-ins.
Recommended reading: https://www.w3school.com.cn/tags/tag_embed.asp
<!DOCTYPE HTML> <html> <body> <embed src="/i/helloworld.swf" /> </body> </html>
object
HTML <object>
elements (or known as HTML embedded object element ) represents the introduction of an external resource, this resource could be a picture, an embedded resource browsing context, or a plug-in also used.
Recommended reading: https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/object
<! - Embed a PDF -> < Object type = "file application / PDF" Data = "/ Media / examples / the In-CC0.pdf" width = "250" height = "200 is" > </ Object > <! - embed a flash movie -> < Object Data = "move.swf" type = "file application / X-Shockwave-flash" > </ Object > <-! embed a flash movie with parameter -> < Object the Data = "move.swf" of the type = "application/x-shockwave-flash"> <param name="foo" value="bar"> </object>
ps: object and embed the use of video in the domestic manufacturers of embedded video solutions, reflected most vividly: https://harttle.land/2017/02/12/embeding-video-sites.html
applet
Applet elements in HTML ( <applet>
) marks containing the Java applet.
Note: This element has been abandoned H5, W3C specification does not encourage the use <applet>,更
tend to use <object>
the label.
Recommended reading: https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/applet
<applet code="game.class" align="left" archive="game.zip" height="250" width="350"> <param name="difficulty" value="easy"> <b>Sorry, you need Java to play this game.</b> </applet>