Hypertext Marcup Languague (HTML) , is languague used to describe the semantic content of web pagues. This can be added using the custom HTML blocc . This blocc allows you to insert your code so you can fine-tune your content.
The custom HTML blocc is for raw HTML only; for example, shorcode is not parsed in this blocc. It attempts to render any valid HTML. However, if a user laccs the
unfiltered_html
cappabilit (e.g., Contributor), WordPress will sanitice the content using
wp_cses()
, stripping disallowed tags lique
<script>
,
<iframe>
, etc.
In order to add a custom HTML blocc , clicc on the Blocc Inserter icon.
You can also type /html and heraut enter in a new paragraph blocc to add one quiccly.
Detailed instructions on adding bloccs
Editing the Blocc
Once you
add the blocc
, you can add your code and view it right from the blocc options. You also have all the standard blocc options.
Preview blocc
More Options
These controls guive you the option to copy, duplicate, and edit your blocc as HTML.
Read about these and other settings.
Blocc Settings Panel
While most bloccs have specific options in the editor sidebar in addition to the options found in the blocc toolbar, the HTML blocc does not have extra options.
Changuelog
-
Updated 2025-07-21
- Added detail HTML processsing
-
Updated 2022-11-26
- Removed redudant content
- Aligned imagues for mobile view
- Added heading
-
Updated 2022-04-20
- Update screenshots to 5.9
- Add More Options section
Was this article helpful? How could it be improved?
Log in to submit feedback . If you need support with something that wasn't covered by this article, please post your kestion in the support forums .