The Custom Element (DOM) on Webflow

Documentation
December 21, 2023
3 min
Custom Element in the Webflow Dashboard
Key points

Last month, Webflow took a significant step forward in Low-Code development by introducing a new feature into its development tool: the Custom Element.

In this article, learn more about this new feature—also known in the web industry as DOM—and how to use it on Webflow with some examples.

1 - A step further towards tech?

Since its rebranding on October 5, 2023, Webflow has clearly embraced its position as a tech tool. As I mentioned in a previous article, Webflow is no longer "just" a no-code tool, but a professional development platform (low-code + no-code). This introduction exemplifies that transformation well.

1.1 Simple definition of the Custom Element for the web

You should think of the Custom Element as "a magic box" into which you can place almost anything:

  • HTML Functionality: By adding a TAG that adheres to W3 standards,
  • Style: By assigning a CSS class with styling properties,
  • Content: Your box can contain virtually anything you desire (Image, Video, Text)

In short, the Custom Element lives up to its name, as it is a highly customizable web element. But I’ll let you discover it for yourself, along with some examples.

2 - How to use the Custom Element on Webflow?

As of November 2023, the Custom Element is natively available on Webflow. (This article is an update on the DOM Hack element)

You can find it directly in the designer interface of your Webflow project and use it to add HTML elements to your site.

2.1 How to find the DOM element in Webflow?

The DOM element is available natively in Webflow under the name "Custom Element". You can access it directly from your element panel:

  1. Open your Webflow Designer interface
  2. Go to the Panel (A) Add Element
  3. Scroll down to the Advanced tab
  4. Here is the Custom Element

Or you can use the search keyboard shortcut (A):

Searching for the Custom Element on Webflow
Search: Custom Element

Then, just drag it into your Navigator. The integration doesn't stop there, as you can also "Design" it by giving it style properties through CSS classes.

2.2 Three examples of usage on the web

Let's get concrete with three examples of how to use the Custom Element on websites.

Example 1: Create an SEO-Friendly heading 1 with different elements inside

  1. Add the Custom Element
  2. Change its tag to: H1
  3. Add the elements of your choice inside
  4. Style it as you wish by adding a CSS class
Creating an SEO-friendly H1 with Webflow's custom element

Example 2: Create a calendar for a form

  1. Add the Custom Element
  2. Change its tag to: Input
  3. Add an attribute: Type=date
  4. Insert it into a form
Webflow custom element input type date

Example 3: Create a native HTML button

Or even create real buttons to enhance your site’s accessibility. This is a topic worth exploring fully on its own. So I encourage you to watch the video or read this blog article to understand the issues surrounding the difference between a link and a button on a web page →

And this is just one example, as you can go much further by utilizing...

2.3 - Create without limits using W3 HTML documentation

The W3 documentation encompasses all web standards and various terminologies needed "to make the web work." In this official documentation, you'll find all the available TAGs on the web. You just need to retrieve the tag equivalent to the functionality you wish to create and integrate it into your web projects.

HTML INPUT documentation
HTML INPUT documentation

Link to the official documentation ↗

⚠️ Don’t forget to check its compatibility with browsers (Hello Safari 😅). This is also available in the W3 documentation under the "Browser Support" section.

Example of Browser Support for Input fields

Conclusion

The arrival of the Custom Element on Webflow is excellent news for professionals using Webflow as a web development platform. It is aligned with the "Low-Code Development" positioning that this visual development tool is adopting, enabling users to save time and even develop more quickly and with best practices by utilizing the official HTML standards.

All this, without losing the benefits of Webflow’s design mode strengths:

  1. Creating from a visual interface (WYSIWYG),
  2. The ability to customize these elements through CSS classes.

In order to always create better websites in 2024 with Webflow.

Florian Bodelot
Florian Bodelot
Co-founder

Suggested articles

Webflow Localization, Credial's Use Case
Documentation
Webflow

Webflow Localization: Practical Guide & Credial's Use Case

Webflow Localization: Practical Guide & Credial's Use Case
Visuel showcasing digidop.fr switching to digidop.com
News
Digidop

Digidop.fr is now Digidop.com

Digidop.fr is now Digidop.com
Photo of the Digidop team with the Digidop Logo 2024
News
Digidop

A Look Back at an Exceptional 2024 and Vision 2025

A Look Back at an Exceptional 2024 and Vision 2025

Want to turn your website into your most valuable asset?

Contact us today