Sometimes, you may want to go beyond the editing options on the ribbon and customize a web page by editing the underlying code. For example, you can:
- Embed pre-generated IFRAME or OBJECT tags to add documents, videos, and other specific content.
Embed code on the page
- Browse to the web page where you want to add or edit the code.
- From the Page tab, choose Edit.
- Place your cursor where you want the inserted code to appear.
- From the Insert tab, click Embed Code.
- In the Embed window, add the embedded code or script that you want to add to the page.
- When finished, click Insert. Note the following:
- If the code is safe, such as embedded code, it is entered inline on the page.
Note You can also add the Script Editor Web Part directly on the page. The security check is the same.
- After you insert the code, verify that everything appears as you expect.
- If the page looks correct, click Page > Save > Save, and then open the page in a new browser window to confirm.
- If you experience problems you can’t resolve, then do not save the page. Instead, click Page > Save > Stop Editing > Cancel.
There are other approaches you can take to customize code behind the pages on your web site:
For a summary of all related topics, see Public Website help for Office 365.