Compile HTML using CSS-like selectors to apply attributes.