![]() |
| ||
| Heading tags and div tags I would like to use <H1> and <H2> tags to emphasize important keywords for SEO purposes. Is it XHTML-transitional legal to enclose a <div class="blah"> tag inside an <h1> tag? |
| ||
| Re: Heading tags and div tags Quote:
h1 { some-style:xxx; } Then all <h1>'s would inherit that style... Make sense? If you are after another result, please share.... I am curious. |
| ||
| Re: Heading tags and div tags I'd prefer to use a span as it's inline. If you put a div in a h1 and put it into the wdg validator - http://www.htmlhelp.com/tools/validator/direct.html it fails, though for a reason I don't actually agree with. (h1 isn't inline to the best of my knowledge). However the only reason I've used this sort of thing for is avoiding box model problems by putting width on one and margins one the other. Is there another use? :curious: |
| All times are GMT -4. The time now is 10:58 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC