Assign ID button

I have placed an image that will be the UI in visual editor mode, but I don’t know how to assign an ID directly to it.

Can you provide more context as to what you’re trying to do? What’s the end goal? The more details the better!