1

I have a site with a blog and using an embed code:

<embed src="https://www.timeout.com/london/things-to-do/the-best-life-drawing-classes-in-london" style="width:500px; height: 300px;"</embed>

This works fine. But when I try:

<embed src="http://anyamountofbooks.com" style="width:500px; height: 300px;"</embed>

It doesn't work.

The site exists but, when I view the page on my blog, it says, 'this site may be down.

1 Answers1

1

Typically you'll want to use an <iframe> instead of <embed> to display HTML content. Take a look at this answer for some more in depth analysis. Now to the root of your problem.

If you're embedding external content into your site (such as by iframe/embed), you'll need to make sure that the protocols match:

  • An http:// website can embed both http:// and https:// content.
  • An https:// website can ONLY embed https:// content.

The http://anyamountofbooks.com website doesn't appear to have a valid SSL certificate, so you won't be able to frame it if your website is secured and accessed through https://.

The other thing to consider is that some websites don't allow themselves to be embedded, here's on article on a couple ways to do it. The website you're trying to embed may employ one of those practices to prevent itself from being embedded.

Xhynk
  • 13,513
  • 8
  • 32
  • 69
  • Which means im bu%@£&£(.. then? No way around it? –  Apr 25 '19 at 05:53
  • There is just one thing. If your theory is right, how come i can embed http://londondrawing.com in my site successfully using `? See here..... https://adsler.co.uk/adsler-blog/ –  Apr 25 '19 at 05:57
  • Also, I tried tried i frame, didn't work.... See here https://adsler.co.uk/adsler-blog –  Apr 25 '19 at 06:00
  • So there is really is no logical reason why doesn't work with http://www.anyamountofbooks.com when it works with http://londondrawing.com –  Apr 25 '19 at 06:09
  • https://tbwdrawingprize.artopps.co.uk/online-entry/ This site embeds itself even without –  Apr 25 '19 at 06:15
  • So it seems totally random what will embed and what won't. I'm using WordPress and know from past experience that Utube embeds just by copying and pasting link... –  Apr 25 '19 at 06:18
  • It won't even embed –  Apr 25 '19 at 06:31