n8n sanitizes all HTML in form fields for security so style attributes get stripped entirely, and <center> isn’t in the allowed tags list either which is why both approaches break. You can use <br> tags for vertical spacing (not &br;, that’s not valid HTML) but there’s no real way to center text with the current sanitization rules. This has come up a few times on the forum, might be worth opening a feature request on GitHub to get style or at least text-align added to the allowed attributes.
Hi @AndreKR Welcome to the community!
Let me give you a better approach, i understand working with forms is very easy and make things seamless, but consider the beauty of this small flow:
Beautiful right? So this is what webhooks get you when used correctly and consider using webhooks only as they will give you more control over CSS ofc, but they are pretty much safe and highly scalable in every setup, as if you create a form and embed that in your website that form will get triggered every time someone loads that website and will eat requests, but with this the flow would only get executed when someone actually requests it or you can customize this the way i did for my portfolio, consider using Webhooks over Form.