View Full Version : Heading tags for images / video?

08-01-2011, 02:59 AM
Should images and video be given a heading tag? My articles usually have one or two images or videos and I'll label them <h4> / <h5> but I don't know if that's the best practice. Sometimes I'll have a couple of <h4>s too. What if the video is in an iframe like Vimeo? What if my images have or don't have a caption?

08-01-2011, 04:11 AM
I think if they are the main part of the page then yes. We are talking h2 here. I read and agreed to an article that the header (or the site name) should be the only h1 on the site. To answer your question, flickr has one image on an entire page, so I think it should have a header. If your video is large, then yeah. One youtube video on the page, fairly large so it should have a h2. For video thumbnails, I typically just use span. Not that any of this really matters since search bots aren't really interested in it either

08-01-2011, 04:26 AM
I don't use a heading tag for my site name. I thought <h1> should be for the article name? I could see how a name brand would benefit but I thought this was the case. Can anyone link to an article discussing this?

08-01-2011, 06:11 AM

wasn't the article i was talking about. + the article linked is slightly wrong (as all her articles are). images can be used in headers if they are backgrounds (ie: logos). I tend to just stick an h1 for my site name with a bunch of keywords and descriptions. ultimately if you are trying to build a website people are going to remember and come back to, i think the h1 should be the site name. if you are building a website that's more like one-stop place and hoping on getting search engines to spot article names, then sure why not.

h1 span { display: none; }

<span>My Site - Site about dogs, cats, pets, animals</span>