Embedding websites in html - html

I am trying to figure out the way this website : totallyscience.co embeds their games into the site because I am trying to make a website and I tried directly embedding a website and it isn't the same.
I tried < embed src="example.com" > and it is definitely not the same as the website listed above.

What you need here AND what totallyscience.co uses is an iframe tag
<iframe src="http://www.example.com" title="Embedding another webpage"></iframe>
You can style and position it as you need.
tip : Try to use secure links (https) in iframe. You can use a https link in a page loaded over http but not the other way.
For further reading: https://www.w3schools.com/tags/tag_iframe.ASP

Related

how to make html webpage a part of website

I've just created my own website with my own domain with IONOS.
On the side, I had created a webpage which was hosted using XAMP, so currently to view my webpage I have to use the URL http://localhost/project1/index.html#
However, I'd like to integrate it into my website if possible?
For example have a section on my webpage where I show a thumbnail of the webpage and when clicked it takes me to www.mywebsite.co.uk/project1
I'm not sure how to go about this though?
You can use Iframe.
See Html Standard and w3schools for more detail about it.
like:
<iframe src="https://www.w3schools.com" title="W3Schools Free Online Web Tutorials"></iframe>
The <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.
<iframe src="www.mywebsite.co.uk/project1" title="My HTML Page"></iframe>

Can I embed google blogger site into my website

I have a blogger blog and I have already successfully had the domain set to a subdomain of my website e.g http://blog.jthink.net
But how do I actually embed the blog onto my website so that it has same header and footer as my main website ( http://www.jthink.net ) so it's more like the way they have done it here
Is it even possible with blogger?
Just use an iFrame for this purpose. To embed a webpage in an iFrame in your own blog of a website is equivalent to copying that webpage into your own website or blog.
Adjust the width and height to your own values that you would like to use.
<iframe src ="URL of the website you want to embed" width="100%" height="500"> </iframe>
You could also add
<p>Your browser does not support iFrames.</p>
To notify if a user uses a browser that does not support iFrame.
So the complete code will be
<iframe src ="URL of the website you want to embed" width="100%" height="500">
<p>Your browser does not support iFrames.</p>
</iframe>
Whilst iFrames is literally speaking the way to embed the blog on your webpage it means you cant give people links to a particular post within the blog, so it doesnt treally work very well.
In the end I found you could simply the customize the blogger template to make your blog look like your other pages, I found this worked better than using iframes.
I'm a bit late to the party but If you want an alternative to straight out embedding your blog you could use the the Blogger api?
To my mind that would be the best solution.
Either you can used an iFrame or you can used an Individual div for the Particular site.
Then you can embedded it within the site.
Be assure that you can adjust the Width and height of the frame or div through the CSS.
here is a simple code which help to embedded the blogger site within your existing site.
<iframe src ="www.xyz.com" width="100%" height="100%"> </iframe>
If for any reason the browser doesn't support iFrame you can notify the user for it. By Using the Paragraph or any other tag.
I'm surprised nobody suggested RSS feed subscriptions.
If it's a blogger site then you can just subscribe to the standard site feed in your current CMS (content management system). See this link for more information: support.google.com/blogger/answer/97933?hl=en
In fact, I think this is exactly how the blog you linked to achieved their effect. All the navigation baggage of the original blogger site is left behind and only the content of each post is automatically reposted via RSS content subscription -> blog.beatunes.com/atom.xml
Tools to achieve this:
-Wordpress: wordpress.org/plugins/wp-rss-aggregator
-Joomla!: extensions.joomla.org/extension/simple-rss-feed-reader
-Drupal: drupal.org/node/326575
-SharePoint: lol *highfive*
You can use iframe to embed your blog onto the website.
for example, http://jsfiddle.net/pablofiumara/mCfAe/
References: https://developer.mozilla.org/ko/docs/Web/HTML/Element/iframe
iframes are best for this. Most browsers support them.
Maybe you could use adobe business catalyst page templates?

How use the source tag and meta-tags of the facebook open graph API to display iframe with text/html?

Know anybody the plattform "SoundCloud", they have embeded the player as text/html page in a iframe.
Do anbody know how this works?
An Working example for the meta tags could you see here

iFraming a page with streaming video - video does not display

I am trying to iframe a page containing a streaming video. The streaming video does not work when I view the iframe. It works fine when the original page is viewed directly in browser. What am I missing here? Is the stremaing video protected by some mechanism that does not let is display within the iframe?
Please also suggest any alternative solution to be able to display external streaming videos on my site.
Thanks!
The iframe code is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<BODY>
<iframe src="http://aajtak.intoday.in/livetv.php" width='800px' height='1000px' />
</BODY>
</HTML>
In your screenshot, you are showing you are trying this from a file:// URL.
I don't know which security shenanigans are involved (The browser's or Flash's), but I'm fairly sure it will go away if you use a http:// URL instead.
Working JSFiddle
It's because of Cross Origin problem. Since you are using file://, it cannot play the video from 'http://' or 'https://'. If you can run your page in 'http://' or 'https://' at localhost, you will make it easy to work. In addition, if it does not work, you can set 'cross-origin' as 'anonymous'.

Can't show some websites in iframe tag

I am trying to develop a page in which I can show more than 3 website at a time,
as below:
<ul>
<li>
<iframe src="http://www.facebook.com/" /><p> iframe is not supported</p>
</li>
<li>
<iframe src="http://www.yahoo.com/"></iframe>
</li>
<li>
<iframe src="http://www.google.co.in"></iframe>
</li>
</ul>
The problem is that it shows yahoo.com and google.co.in, but does not display Facebook in the iframe.
You have to check for HTTP response header X-Frame-Option of those sites. if its value is "DENY or SAMEORIGIN", then you can not load those website in the iframes.
DENY = No one can load the website in iframe. Even the same domain page wont be able to load.
SAMEORIGIN = only a page which is in same domain can load this website in iframe.
Since some websites have decided to disable embedding them in iframes theres nothing you can do with pure html solutions. You could create a serverside script (in PHP) that pulls the target site via your webserver and then use the html etc.
The only way I can think of that would enable you to check wether the site has loaded is to search the iframe for a specific element that exists on the target website (for example a div with a specific id or class on the Facebook's front page). The reason would be that different websites can handle being embedded into iframes differently and while some might display some content, some may display nothing etc and the only way to be sure is to check for real elements.
facebook does not want you to load their main site in frames
<iframe src="http://m.facebook.com/" width="200" height="300" scrolling="auto" frameborder=0></iframe>
width="200" height="300" can be adjusted accordingly.*
What this does is load the mobile version of facebook in the frame instead of the main site.
Reference
You can use the object tag:
<object data = "https://facebook.com"></object>
You will not able to do that, you can only iframe like button... someother not whole site.