<html>
may break animations, form functionality, and impact SEO/accessibility.action
and implement validation/spam protection.Removing Webflow's default attributes from the <html>
tag can impact various functionalities of your site. Here’s what you need to consider:
Webflow automatically adds certain attributes to the <html>
tag, such as:
data-wf-page
and data-wf-site
– Used by Webflow’s interactions and scripts.lang="en"
(or other language) – Helps with accessibility and SEO.class="w-mod-js"
– Ensures Webflow’s JavaScript functions correctly.If you remove these:
If you're handling form submissions outside of Webflow:
action
attribute pointing to your server.If you’re fully replacing Webflow’s backend functionality:
data-wf-page
and data-wf-site
.You can remove Webflow’s attributes if you're replacing its form handling and JavaScript functionalities, but doing so may break interactions and default Webflow behaviors. Always test your site thoroughly before publishing changes.