finish the attribute and add the css