Close Interview Question

How would you insert a string into an HTML element?