handling html attributes