Embedding a Google item is very easy and requires just a little familiarity with HTML.
Embedding Google Documents, Presentations, Spreadsheets, and Drawings
- Open your Google Document (or other Google item).
- Under the "File" menu, click "Publish to the Web".
- Copy the "iframe" code.
- On the page you want the Google Doc embedded, click on "Source Code" button from the WYSIWYG editor to open the HTML editor.
- Paste in the iframe code where you'd like the Google item to appear. Your HTML code should look something like this example:
- Click "OK" and then Submit and Publish your page.
- Your item should automatically appear on your page as well as any changes you make going forward.
The width of the code should be no more than 760 for a Left Navigation Page OR no more than 1024 for a Page with No Left Nav.
Embedding Google Forms
- Open the Google form.
- In the top right corner, click the "Send" button.
- In the window that opens, click the "< >" tab and then copy the
entire iframe code from beginning to end (you might need to scroll over to capture it all).
- On the page you want the Google Doc embedded, click on the "Source Code" button from the WYSIWYG editor to open the HTML editor.
- In the window that opens, paste the iframe code where you'd like the form to appear.
- Click "OK" and then Submit and Publish your page.
- Your form should automatically appear on your page as well as any changes you make going forward.
11
New! Save questions or answers and organize your favorite content.
Learn more.
I found this question, which seems to suggest I can just paste in my HTML, but when I try that it just looks like HTML, it does not render. Below is what I am pasting in:
<pre style="background:rgba(238,238,238,0.92);color:#000"><?php $stmt <span style="color:#00f">=</span> $dbConnection<span style="color:#00f">-></span>prepare(<span style="color:#093">'<span style="color:#00f">SELECT</span> <span style="color:#00f">*</span> <span style="color:#00f">FROM</span> employees <span style="color:#00f">WHERE</span> name <span style="color:#00f">=</span> ?'</span>); $stmt<span style="color:#00f">-></span>bind_param(<span style="color:#093">'s'</span>, $name); $stmt<span style="color:#00f">-></span>execute(); $result <span style="color:#00f">=</span> $stmt<span style="color:#00f">-></span>get_result(); <span style="color:#00f">while</span> ($row <span style="color:#00f">=</span> $result<span style="color:#00f">-></span>fetch_assoc()) { <span style="color:#06f;font-style:italic">// do something with $row</span> } ?> </pre>Does anyone know what I need to do to get it to actually render?
asked Oct 4, 2013 at 5:37
2
Google docs won't actually render HTML, or execute any code pasted into it. What you can do is view your HTML as a page in the browser, which will show:
Copy it from the web page, then paste into your document - it will look like this:
The question you referred to was for people who wanted to present their HTML code within the document with syntax highlighting, not have it rendered.
answered Oct 6, 2013 at 1:29
Tom HorwoodTom Horwood
1,75113 silver badges21 bronze badges
I always do this and it works for me.
- Save the HTML file as it is, just save it as HTML.
- Open the saved file (HTML) with Word.
- Save it as Word format i.e DOC or DOCX.
- Upload the saved word file into Google Docs.
That's it.
answered Dec 18, 2016 at 11:04
This is the closest I have been able to get:
- Upload your HTML file to google drive
- Open the file by double-clicking and select "open with google docs"
This way docs will try as much as it can to render the data.
what I got:
answered Jan 8, 2020 at 10:21
Open the page in the browser so it renders normally. Then press ctrl+A and ctrl+C in the browser. Now go to Google Docs and press ctrl+V.
Google Docs will try to render the html as it is seen in the browser, but is not perfect. You will need to make manual adjustments to get it exactly right.
answered May 14, 2019 at 21:27
Add Editey apps to your Google Drive. (Editey, CSS Editey, HTML Editey and JsEditey).
Alex
22.3k12 gold badges79 silver badges102 bronze badges
answered Jan 4, 2014 at 15:03
2