You can do this. This example comes straight from the web2py book. http://web2py.com/book/default/chapter/05#Built-in-Helpers
A(IMG(_src=URL('static','logo.png'), _alt="My Logo"), _href=URL('default','index')) Matt Gorecki On Aug 22, 9:11 am, sagar <browse2sa...@gmail.com> wrote: > I have triying like this but not succeeded yet, > > table += "<td>"+ str(A(_href=URL('a', 'preview')) , > IMG(_src=URL(r=request,c='static',f='images/preview.png'),_width="15", > _height="15" )) +"</td>"