Add HTML attributes to the API