bluewaves Posted September 26, 2010 Share Posted September 26, 2010 When I use this code, I get error messages in w3 validator that says - required attribute "alt" not specified What would I need to change to get it to recognize the alt tag? <td width='200'><div class='imageBox'><a href='". $list['link'] . "' rel='nofollow' title='" . $list['name'] . "' > <img src=" . $list['image'] . " alt='" . $list['name'] . "' border='0' /> <a href='". $list['link'] . "' rel='nofollow' title='" . $list['name'] . "'> <center><font size='1'><strong>" . $list['name'] . "</a></strong></font></center></td>\n"; ?> Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted September 26, 2010 Share Posted September 26, 2010 What's the HTML output to the browser? In other words paste the results of View source in your browser. Quote Link to comment Share on other sites More sharing options...
bluewaves Posted September 27, 2010 Author Share Posted September 27, 2010 I was able to solve this problem. <img src='" . $list['image'] . "' alt='" . $list['name'] . "' border='0' /> That did it. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.