Add custom HTML code and preview it as you edit.
- Name:
core/html - Category: widgets
- API Version: 3
- Block Type: Static (saved in post content)
- Keywords:
embed
Attributes
Defined via the attributes property in block.json.
Supports
Defined via the supports property in block.json.
customClassName:falseclassName:falsehtml:falseinteractivity:clientNavigation:true
listView:truecustomCSS:falsevisibility:false
Block Markup
This is a static block. The markup is saved directly in the post content.
<!-- wp:core/html -->
<h1>Some HTML code</h1>
<div>This is a div</div>
<!-- /wp:core/html -->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.