How to put msg.payload value in html tag?

Please read How to share code or flow json then edit your first post and readd your flow so it can be viewed.

did you try using the why you use in the <span>?