# Give a HubSpot custom module a unique ID

Technical Difficulty: Advanced

Written by [Stephanie O'Gay Garcia](/content/hubspot-website-development/author/stephanie-ogay-garcia/index.html)

First Published: March 12, 2020

Last Updated: March 12, 2020

⚠️ Note that this post hasn't been updated for at least a year and the information may be outdated, proceed with caution! _(Last updated: March 12, 2020)_

Sometimes you may want to use a unique ID for a custom module. You can create an ID using the following HubL snippet:

{% raw %}`{% set mid = module | pprint | md5 %}`
Then you can use that ID to create a unique CSS ID, for example:
`<div id="section-{{ mid }}">
My DIV
</div>`
which will print out something like:
`<div id="section-6219837888e9769f1d695d05b73a8256">
My DIV
</div>`

If you found this helpful, buy me a coffee! ❤️

[Buy me a coffee](https://buymeacoffee.com/stephanieogaygarcia)
