This is a discussion on "Nesting confusion - please help" within the Web Page Design section. This forum, and the thread "Nesting confusion - please help are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Nesting confusion - please help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
hello everyone
I was messing about with links in my website using CSS and hover techniques and created the perfect links for my site. I opened up my page in FF and EI7 and they appeared exactly how i wanted them to. Then i wentover to w3.org to check my html. Saddly i was disapointed to see a long list of errors telling me that the header tag could not be nested in that position. I was wondering if this nesting is actually breaking any rules or if it matters the html is not valid because it displays fine anyway.
|
|
|
|
|||
|
Re: Nesting confusion - please help
It matters both that your site validates and that you use correct structural mark-up.
Not doing so will confuse both search engines and those using assistive technology. Correct your code as per the validation response. |
|
|||
|
Re: Nesting confusion - please help
Thanks i will try to fins a walkaround.
|
|
|||
|
Re: Nesting confusion - please help
but just to let you know that you can't have 'h1' elements inside a link tag - rather, keep the structure somethinglike: <h1><a>Header</a></h1> (H1 is a containing element, for containing other content - much like a 'div', and not like a 'span' as far as I can make out... so you can use a div or heading with a 'text-align:right', and that would align the content, but not if you used a non-containing-stuff-element... correct me if I'm wrong someone! (if you can understand what I just wrote |
![]() |
| Tags |
| html, nesting |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Confusion between DOM element and javascript object | coolxo | JavaScript Forum | 3 | Oct 22nd, 2007 23:38 |
| Yet more confusion | dhall | Starting Out | 7 | Aug 20th, 2007 23:25 |
| contact form confusion | Gogglez | JavaScript Forum | 1 | Feb 26th, 2007 21:58 |
| nesting in XML schema - help needed | sh33p1985 | Other Programming Languages | 0 | Jan 18th, 2006 19:53 |
| Printing Margin confusion | Kouche | Web Page Design | 2 | Jun 1st, 2005 15:00 |