To be honest, I wouldn't want to code on an iphone. That sounds horrible. An iPad while on the move, yeah. But an iPhone? shudders
Firing up the app store on my phone and typing "html editor" into the search field reveals:
Espresso HTML (Free, 16 ratings @ 4.5 stars, looks alright)
There are a bunch more too.