Hashnode editor allows you to paste and run HTML code snippets, iframes, and other elements directly within your blog post.
Follow the steps below to insert HTML into your blog posts.
1. Type the /html
command and click enter
2. Paste or write your HTML snippet in the code editor widget that appears as shown below:
3. Click on the "Preview" button at the top-right corner once you're done to see the output of the code snippet as shown below:
Watch the video below to see the HTML insert in action:
The list of supported tags includes:
-
<details>
-
<iframe>
-
<dl>
-
<center>
-
<aside>
Rules to insert HTML on Hashnode Editor
-
You can only enter one root-level supported element.
-
Only supported elements are allowed.