Skip to main content

Allow Custom HTML Tag Assignment for Pages

Request:
Enable users to change the default HTML tag (currently always <div>) that wraps the Page content. This would allow better semantic control over top-level layout elements.


✅ Expected Behavior

  • When editing a Page, users can choose a different HTML tag (e.g., <main>, <section>, <article>, <header>, etc.)

  • This tag is reflected in the published HTML

  • The tag can be selected via the Props Panel for the page


🎯 Why This Matters

  • Improves semantic structure and accessibility

  • Aligns with modern HTML practices (e.g., <main> for page content, <section> for grouped content blocks)

  • Gives developers more control over final output without needing to wrap content manually


📌 Related Notes

  • May also require visual indicator in the UI to show which tag is currently being used


1 comment

Log in to comment and vote

Comments1