Why would you want to read your HTML tags through code? Are you trying screen scrapping by doing HTML parsing? In that case you have to identify the starting of an image tag using <img then look for the nearest src tag property and then look for quotes ["] Is there any other way, yes you have to define a good regular expression to parse for patterns but that would be too much work, but definitely possible and efficient.