i got a code so when i right click on an image it shows the table name around it in the context menu it works only with text but if i insert an image inside the code it wont display the table name around it:

i think it is because the image code contains < > this is the code that works

Code:
<td align="center" id="<?= $onlineusersqry[username]; ?>" oncontextmenu="return showmenuie5(event)">avatar here</td></div>
this is the code that i wnat to work with it:
Code:
<td align="center" id="<?= $onlineusersqry[username]; ?>" oncontextmenu="return showmenuie5(event)"><? $avatar; ?><image src="images/avatars/<? echo $avatar; ?>.gif"></td></div>