Extract HTML element attributes in correct types using a meta data