Add a Custom HTML block in WordPress
You can add a block with custom HTML to your WordPress website.
- Open the block editor (Need help opening the block editor?).
- Select Add block.
- Select Custom HTML from the Formatting section.
- Paste your HTML code snippet into the field provided.
- You can preview the code by selecting the Preview tab.

Note: Please remember to update your page or post after editing.
Related steps
- Go back to the article: Using the WordPress editor
More info
- You can find more specific details about using HTML on your WordPress site in the support documentation.
- What is CoBlocks?
- Discover more about the block editor for WordPress in their support documentation.