<em> Tag Attributes Remover

The <em> Tag Attributes Remover is a free, browser-based tool that strips unwanted or presentational attributes (like class, id, style) from HTML <em> tags, producing clean, standard-compliant markup.

Paste your <em> tag below, specify the attributes to remove, and click Remove.

Tip: Type * to remove ALL attributes except those listed under "Preserve".

How to Use Step by Step?

Step 1: Open the Tool Save the HTML code as a file (e.g., em-remover.html) and double-click it to open in any browser. No installation or internet needed.

Step 2: Paste Your HTML In the "Input HTML" box, paste the HTML containing <em> tags. For example:

<p>This is <em class="highlight" id="em1" style="color:red">very important</em> text.</p>

Step 3: Set Attributes to Remove In the "Attributes to remove" field, type attribute names separated by commas. Default is class, id, style.

To remove only class and style, type: class, style
To remove ALL attributes, type: * (asterisk)

Step 4: Set Preserve List (Optional) In the "Preserve (don not remove)" field, list any attributes you want to keep — especially accessibility ones like lang, role, or aria-label. Leave empty to preserve nothing.

Step 5: Click "Remove Attributes" Press the Remove Attributes button. The cleaned HTML appears in the "Output HTML" box with a green success message.

Input:

<p>This is <em class="highlight" id="em1" style="color:red">very important</em> text.</p>

Output:

<p>This is <em>very important</em> text.</p>

Step 6: Copy the Result Click the Copy button at the top-right of the output box. It turns green and shows "Copied!" — the cleaned code is now in your clipboard.

Step 7: Reset (If Needed) Click ✕ Clear to empty all fields and start over.

21 Views