To insert custom HTML, PHP, or other code into your document, make an Embed graphic and type and type or paste in your code. You can either type it into the Include Custom HTML field in the Object Info pane, or type it directly into the Embed graphic itself.
Custom HTML Example:
This is what appears in the Create document. It’s some boilerplate HTML from wunderground.com.
This is what appears in the web page. The HTML in the Embed object accesses a weather graphic.