Handles id and class attributes.