Custom HTML

In this article


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.

Attribute Type Default Description
content string Role: local

Supports

Defined via the supports property in block.json.

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