How to create HTML data attributes in Elm? May 28, 2023 by Tarik You can use the attribute function instead. view ... = tr [ attribute "data-row" "1" ]