SEARCHING FOR A <IMG TAG WITHIN A HTML DOCUMENT
Posted: Thu Mar 11, 2004 9:22 am
im writing a web based program to assess a webpage (structure,elements, syntax etc)
i need to search through the specified html file looking the for "<img tag".
output image tag found
if present, check to see wether it has the parameter "align=center".
output image aligned to center
store the src in a variable so i can check wether the image exists. eg. $src = "images/image.gif".
does anyone know how i could do this?
help would be much appreciated
deyna
i need to search through the specified html file looking the for "<img tag".
output image tag found
if present, check to see wether it has the parameter "align=center".
output image aligned to center
store the src in a variable so i can check wether the image exists. eg. $src = "images/image.gif".
does anyone know how i could do this?
help would be much appreciated
deyna