Close interview question

How would you insert a string into an HTML element?