difference between iframe, embed and object elements

前端 未结 4 861
孤城傲影
孤城傲影 2020-11-27 09:34

HTML5 defines several embedded content elements, which, from a bird\'s-eye view, seem to be very similar to the point of being largely identical.

What is the actual

4条回答
  •  醉酒成梦
    2020-11-27 10:19

    Another reason to use object over iframe is that object sub resources (when an performs HTTP requests) are considered as passive/display in terms of Mixed content, which means it's more secure when you must have Mixed content.

    Mixed content means that when you have https but your resource is from http.

    Reference: https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content

    提交回复
    热议问题