How to Embed your DevCanvas Projects to websites

Published Sep 1, 2024

Written by: Abdulmumin Yaqeen

DevCanvas is a powerful online platform for web developers, similar to CodePen, that allows you to create, edit, and share your web projects. One of the cool features of DevCanvas just like Codepen is the ability to embed your projects in other websites.

Here’s how to do it:

  1. Get the Embed Code:
  • Open your saved project in DevCanvas.
  • Look for an “Embed” option, which should provide you with an iframe code.
  • Or just and /embed to the end of your project URL.
  1. Copy the Embed Code:
  • The embed URL will look similar to this:

https://devcanvas.art/play/v4H9dW/embed

  1. Customize the Embed (Optional):
  • You can modify the iframe attributes to control its appearance:
  • Add width and height attributes to set the size.
  • Use the active parameter to specify which editor should be active by default (html, css, or js).
  1. Paste the Code:
  • In your website’s HTML, paste the iframe code where you want the DevCanvas project to appear.
  1. Example of Embed full code:
Tagged with: how to
Love it? Share it!

0 Comments

Be the first to comment!

DevCanvas DevCanvas Logo

Online Editor with a collection of awesome frontend code and code snippets for developers of all levels.

Legal & Support

Stand with Palestine 🇵🇸! DO NOT BE SILENCED

© 2024 DevCanvas. All rights reserved.