HTML attributes now working correctly