Provide a placeholder in your HTML document where you want the fetched HTML data to be inserted. Identify
that placeholder using an id attribute, e.g.,
If you want to fetch data from two HTML documents, then you need to provide two placeholders (each
with a unique id value). If you want to fetch data from three HTML documents, then you need to provide
three placeholders. And so forth.
invoked to fetch the HTML, and you want the fetched HTML data to be inserted into the placeholder.
This example shows how to do it: I want Waldorf-Astoria-Photo.html to be fetched and its contents put into
the placeholder specified in Step 2 (Photo):
Put your HTML document on a Web server (that is connected to the Internet).
Note: it doesn't work if you try to run your HTML document locally on your file system. You must
FTP your HTML document onto a Web site. And the HTML document(s) that you are fetching must also
reside on a Web site. Of course, they don't have to reside on the same Web site as your HTML document.
Open a browser and type in the URL to your Web page. When you click on the link it will result in
fetching the data in the target HTML document and inserting it into your Web page.
I have a Web page (Waldorf-Astoria-Factsheet.html) in which I embedded two links: to Waldorf-Astoria-Photo.html
and to Waldorf-Astoria-Description.html
When you click on either link, it results in fetching the data in the HTML document and inserting it into my Web page.