Embedding an MHT File in HTML Code

Next Video:
How to Paginate in HTML....5

Embedding an MHT file in HTML code always requires you to keep a few key things in mind. Find out about embedding an MHT file in HTML code with help from a programmer and web designer in this free video clip.

Part of the Video Series: Web Design & WordPress
Promoted By Zergnet


Video Transcript

Hi, I'm Omar, and I'm a programmer. Today, I'm going to show you how to embed an MHT file onto your HTML file using just HTML code. Now, the simplest way to do this is using an iFrame. I know that's an old way of doing things, but iFrames still work, so if you can embed an iFrame onto your page, that would be the best way to use an MHT file on your page. So, let's open up your favorite HTML editor. I'm using Text Edit just to make it simpler, but you can use whichever one you want. So as you can see, I have an empty file here, so let's just add some boiler plate HTML code. For instance, my title is title, test page, and we'll add a nice body to it and we just add a body tag here and we close off that body tag now, so we don't forget to later on, and we'll also close up the HTML tag as well because that's just good practice. So, the way to embed an MHT file is to, like I said, use an iFrame and the code you want to put is iFrame source equals the test MHT file that you want to use. We'll put width equals 100 percent, so it takes up the whole page and the height you can set to whatever you want, 80 or 800, I chose 800. After that, we want to put a paragraph that tells the person that you cannot have an iFrame set up. If you don't have an iFrame support, we want to add the paragraph that tells the person that, and then go ahead and close your iFrame tag, and once you do that, you should have an MHT file embedded into your HTML file. I'm Omar, and I just showed you how to embed an MHT file into your HTML file using nothing but HTML code. Thanks for watching.


Related Searches

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!