treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Add // to h1 tags

  • I was just wanting to know the best wat to add "//" At the begining of my text inside h1, h2, h3, and h4 tags. Could it be done with css or would I have to use javascript or even php? Any help would be great!

    Thanks.
  • Can I ask why? Not certain, but I think adding // as text may have SEO implications so might be best to use a background image
  • Just a design look I was going for, but if it will hurt my ranking I wont do it.
  • Ya a background image would probably be a good idea.

    You could also do it with jquery.

    Something like this:
    $('//').prependTo('h1');


    http://api.jquery.com/prependTo/

    Cheers,

    Cory
  • if you dont want any code implications you can use &frast; &frast; that would give //.