Changed the API to support CSS-like tag selectors when creating html