How to Embed your DevCanvas Projects to websites
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:
- 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.
- Copy the Embed Code:
- The embed
URL
will look similar to this:
https://devcanvas.art/play/v4H9dW/embed
- Customize the Embed (Optional):
- You can modify the iframe attributes to control its appearance:
- Add
width
andheight
attributes to set the size. - Use the
active
parameter to specify which editor should be active by default (html, css, or js).
- Paste the Code:
- In your website’s HTML, paste the iframe code where you want the DevCanvas project to appear.
- Example of Embed full code:
Tagged with:
how to
Be the first to comment!