Heading in alt-tag (alt='Test')
I have an image with a link. If there, for some reason, is no image I
would like the "image" to display a heading. I am coding this in PHP, and
this is my line of code:
<a href='LINK.php?img=$id'><img src='$filename' alt='<h1>$username</h1>'
width='500'></a>
It is not working, and the out put is "
jerry>
" in plain text, no heading, if the $username is jerry.
How can I fix the problem?
No comments:
Post a Comment