# Re: How to I generate a \<span\> tag

**URL:** <https://www.ruby-forum.com/t/re-how-to-i-generate-a-span-tag/113117>\
**Category:** Rails\
**Created:** [August 27, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/re-how-to-i-generate-a-span-tag/113117 "2007-08-27T20:17:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [August 27, 2007, 8:17pm UTC](https://www.ruby-forum.com/t/re-how-to-i-generate-a-span-tag/113117/1 "2007-08-27T20:17:07Z")

</div>

That did it!

I have been stuck on this for a while and it was starting to drive me  
nuts 🙂

Thanks Adam!

----- Original Message ----  
From: Adam C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: removed\_email\_address@domain.invalid  
Sent: Monday, August 27, 2007 2:11:10 PM  
Subject: [Rails] Re: How to I generate a tag

On 8/27/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> First, thanks for the help!
> 
> When I try using content\_tag(‘span’, 'Home)) it wraps the output in my   
> with quotes.

 

Sorry, misunderstood what you wanted. This should do the trick.

 

\<%= link\_to(image\_tag(image\_name.gif) + content\_tag(‘span’, ‘lame’),  
‘[http://someplace.com](http://someplace.com)’) %\>
