Tag Attribute Filter of HTML6 Editor
Need to remove or extract specific HTML tag attributes effortlessly? Whether you're cleaning up a large HTML file or tweaking a few elements, the Tag Attribute Filter in the HTML6 Editor makes it easy. Just select the attributes you want to delete or extract, and let the tool do the work for you.
No more tedious manual edits! Simply choose what you want to extract or remove, enter your preferences, and click the Execute button. The HTML6 Editor takes care of the rest.
Tag attributes are listed in the opening HTML tag, after a white space.
How to Use the Attribute Filter?
When you set the desired option and it reads like a valid English sentence, press the arrow icon ➤
to execute the command. The export will be sent to the draft editor if you have set to extract attributes.
✂️ Extract or Delete – Choose whether you want to Extract attributes (to gather them in the Draft Editor) or Delete them (removing all matching attributes from the document).
❓ Which Attribute? – Enter the name of the attribute you want to target in the first input field. If left blank, all attributes will be affected. For example, deleting all attributes from span
tags.
🔎 Which Tag? – Use this optional input field to specify which tags should be modified. If left blank, all tags will be processed. For example, extracting class attributes from all tags.
Examples
Extract href attributes (from a tags)
👉 Get a list of all links in the document.
Delete target attributes (from a tags)
👉 Remove all target
attributes from links, so they no longer open in new tabs.
Extract class attributes (from all tags)
👉 Retrieve a list of all class names used in the document.
Delete all attributes (from span tags)
👉 Strip all attributes from span
tags, including classes, inline styles, and more. You can also do this in the Tag Manager with one click.
Extract src attributes (from img tags)
👉 Get a list of all image file links in the document.
Useful Tips
- Be cautious when deleting attributes—some, like
src
for images andhref
for links, are essential. - HTML6 Editor has a separate Cleaning option to remove all tag attributes, except the src of images and href of links.
- To apply changes to multiple attribute types, leave the attribute input blank.