Generating the attributes of an option element.