Im trying to place a banner ad under my menu which is in a “nav tag”. The nav tag’s only wrapper is my main div wrapper which is encasing everything on my page.
What tag would I wrap the “nav tag” in so I can place a banner ad under the horizontal floated left menu…? Also what would be the appropiate HTML5 tags for the banner…
Is it really just a case of putting the “banner” and the “nav” in a “div” with an id of header…? I thought there was another way…a new tag…
P.S I know HTML5 isn’t fully supported yet but by the time I learn php it should be lol
The tag most appropiate for the banner ad was an “aside” tag.
I would disagree. <aside> is kinda like a sidebar: the content inside it is supposed to be vaguely related to the main content on that page, but can stand alone on its own.
Now, people do tend to put ads in their sidebars, and if you have a sidebar with aside-type info AND a banner, I think you could use aside… but what is the ad about? Where does clicking it take you? I think you could only argue <aside> if it took you elsewhere on your own site, to a page with relevant and at least mildly-related content to whatever was on the page where the ad is.
Even with all the new tags, if I’m grouping stuff simply so I can style it (grouping not-necessarily-related content so I can float them all together for instance), I’ll use a plain old <div>, which was created exactly for this purpose: grouping stuff no matter if it’s related content or not.
Would it be a case of wrapping the banner ad in a ‘div’ and the placing that div inside my ‘header’ tag which I must mention also wraps my ‘nav’ tag…?
It sure could be, if the reason you’re wrapping anything around that ad is so that you can set both your nav and the ad to the left for example (if you needed to float a box with both of them in it).
I wouldn’t personally consider some affliate ad to be <aside> on its own, no. I would use a plain old-fashioned <div> here.