You can use chatGPT to write code for you. I am seeing more and more that people are using this for roll20 character sheet code. I have this to say about that:
Don’t do it!
I have a reason for this.
Roll20 code looks like HTML or JS, but has its own idiosyncracies that guarentee any code written using standard HTML or JS will simply not work, and will lead you badly astray.
For years, people have suggested avoiding general HTML and JS code sites, and the same is true for chatGPT. For working code, look at the roll20 wiki or this site (which is designed for code newbies). Steer well clear of chatGPT – you’ll end up having to redo everything and then look at those sites anyway.