how to get attribute value in html tag using c# code example Example: javascript element read attribute document.getElementById('id1').getAttribute('attribute');