How to display a Read only ID Field on a Form? [duplicate]

I was faced with the doubt as to the correct way to show an ID on a form. It will be a Read only field so the user can't edit or change the Id value.

So should I display this read only value in a input field or should I use another way, e.g. label, text?

Thanks in advance for your answers. MM