Title: WP_HTML_Active_Formatting_Elements::insert_marker
Published: November 13, 2024
Last modified: February 24, 2026

---

# WP_HTML_Active_Formatting_Elements::insert_marker()

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#see-also)
 * [Source](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#wp--skip-link--target)

Inserts a “marker” at the end of the list of active formatting elements.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#description)󠁿

> The markers are inserted when entering applet, object, marquee, template, td, 
> th, and caption elements, and are used to prevent formatting from “leaking” into
> applet, object, marquee, template, td, th, and caption elements.

### 󠀁[See also](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#see-also)󠁿

 * [https://html.spec.whatwg.org/#concept-parser-marker](https://html.spec.whatwg.org/#concept-parser-marker/)

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#source)󠁿

    ```php
     */
    public function insert_marker(): void {
    	$this->push( new WP_HTML_Token( null, 'marker', false ) );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/html-api/class-wp-html-active-formatting-elements.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L101)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/html-api/class-wp-html-active-formatting-elements.php#L101-L103)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_html_active_formatting_elements/insert_marker/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.7.0](https://developer.wordpress.org/reference/since/6.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_html_active_formatting_elements%2Finsert_marker%2F)
before being able to contribute a note or feedback.