How do I include an HTML element to Database / Dynamic page?

https://www.wix.com/corvid/reference/wix-dataset/dynamicdataset/getcurrentitem
it returns current object on dynamic page. Please read this article

I see at least 2 problems - you didn’t connect dataset component to event, read about it here - https://support.wix.com/en/article/corvid-tutorial-adding-custom-interactivity-with-events

second problem is that in collection field name is “Code”, but in code its actually “code”. Field ids in collection are case sensitive.

In general, read articles)