Abstraction for creating dom elements.