render html attributes from data