homepage Welcome to WebmasterWorld Guest from 54.163.91.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
Is it okay to put an image in a header tag?
OrganicPop




msg:4281751
 3:42 am on Mar 15, 2011 (gmt 0)

I want to put an image inside an h2, next to the content for the h2, because the image would line up better. Is there anything to consider as far as semantics or hierarchy when doing so?

 

TheMadScientist




msg:4281753
 3:51 am on Mar 15, 2011 (gmt 0)

I doubt it will cause any issues, but if you have room for both you could probably set a width on each and float the h2 to one side and the image to the other, which would keep them separated.

OrganicPop




msg:4281754
 4:07 am on Mar 15, 2011 (gmt 0)

thanks tms.

TheMadScientist




msg:4281755
 4:14 am on Mar 15, 2011 (gmt 0)

Np ... Just remember if you float elements you'll want to clear your floats or you may get unexpected and undesired formatting on other elements.

topr8




msg:4281841
 10:41 am on Mar 15, 2011 (gmt 0)

heading: h1, h2, h3 etc

header: a new tag in html5 to designate a header.

header: also conventionally used to describe the top of the page where the logo etc is located, there was no specific tag (before html5) to define this

almighty monkey




msg:4281855
 12:05 pm on Mar 15, 2011 (gmt 0)

Eek, in my experience text H2 has definite value. If your dead on doing this, make sure you give the image a decent alt tag.

We're at a point, right now, pre-HTML5, where if using text for things like headings isn't viable in the design, I'd redesign. If you don't have great headings, and your competior does, you've got to do way more offsite stuff to keep up. Your potentially creating a mammoth task down the line in the name of saving a bit of time now. Shortcuts make long journeys and all that.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved