...

View Full Version : CSE HTML Validator indecisive?



effpeetee
05-07-2007, 03:12 PM
When I put my index page through the CSE HTML Validator, the following code gave me a warning nesting error.

</h5></a> are the wrong way round an should be reversed.

After doing just that; I validated the result and got the warning nesting error.

</a></h5> are the wrong way round an should be reversed.

"Here we go round the mulberry bush!"

Has anyone got the answer?

effpeetee

www.exitfegs.co.uk

<a href="two.html"><h5><strong>Betty and Frank.</strong></h5></a>
<a href="three.html"><h5><strong>Little Ted and Dmitri.</strong></h5></a>
<a href="four.html"><h5><strong>Lovely Betty and Pussycat.</strong></h5></a>
<a href="five.html"><h5><strong>Betty and the Bears.</strong></h5></a>
<a href="seven.html"><h5><strong>Steven and Joyce and Mark.</strong></h5></a>
<a href="twelve.html"><h5><strong>Ritcroft family group.</strong></h5></a>
<a href="Eddie.html"><h5><strong>Eddie, relaxing at home.</strong></h5></a>
<a href="Bluebell1.html"><h5><strong>Steven at ease.</strong></h5></a>
<a href="Steveintrain.html"><h5><strong>Steve on the "Bluebell Line".</strong></h5></a>
<a href="steveviewing.html"><h5><strong>Steve at the box.</strong></h5></a>
<a href="dadatpub.html"><h5><strong>'Smile please'</strong></h5></a>
<a href="Barker.html"><h5><strong>Claire,Yvonne and Susan.</strong></h5></a>
<a href="xmas2006.html"><h5><strong>Christmas 2006 at Yvonne's.</strong></h5></a>
<a href="nine.html"><h5><strong>Family photos.</strong></h5></a>
<a href="hol1.html"><h5><strong>Holiday snaps.</strong></h5></a>
<a href="LittleBoyBlue.html"><h5><strong>Little Boy Blue</strong></h5></a>
<a href="Tarantella.html"><h5><strong>Do you remember an inn.</strong></h5></a>
<h6>(One of Betty's favourite poems.)</h6>
<br />

BonRouge
05-07-2007, 03:21 PM
You can't put heading tags inside 'a' tags. Try not using h5 tags there. They don't seem to be headings, so you should probably not be using them. Just remove all the <h5>s and all the </h5>s.

Bill Posters
05-07-2007, 04:32 PM
The <strong> and </strong> tags are wasteful and inappropriate too.

You should seek to use strong/em elements only when a passage or word needs to be stronger or more emphasised than the text which surrounds it.
Having everything in strong not only defeats the purpose, but could also mean that screen-reader users will have your page barked at them.
Besides that, it could potentially result in the site being blacklisted by search engines for excessive use of heading elements.

If you simply wish to present the text in a bolder weight for stylistic reasons, use CSS.

{
font-weight: bold;
}

As BonRouge points out, your markup isn't ideal. You should look into how to use unordered lists to structure menus.
You should be able to find plenty of info here at CF, but here's another couple of links which should help you get started.

http://css.maxdesign.com.au/listamatic/
http://accessify.com/tools-and-wizards/developer-tools/list-o-matic/

effpeetee
05-07-2007, 06:16 PM
Thank you BonRouge and Bill Posters.

I am very new to CSS. I started this web site to give contact to my son in Australia. It has been a suck it and see experience. I have been helped all the way by you kind and knowledgeable people.

I usually learn best by trial and error, but I have bought books on HTML, CSS and Javascript. They have not been of much help to me. Quoting rules is no substitute for hands on experience.

Actually, my site works quite well and I suppose there is no real need to do anything to it. But I am a bit of a perfectionist (even though you would not guess it from my coding) But I cobbled the site together using bits and pieces of code downloaded from the internet, and I would now like to make it presentable to visiting coders. (Climb any mountain..............)

So I hope that you will bear with me. At least you will get a laugh reading my code. I really do appreciate the help that I am/have been getting.

Just for your info, I am 82 years old and retired so I do have plenty of time during the day. If you look at the "Smile please" selector from the index page, you can see what I look like. (Deep Joy!)

effpeetee

www.exitfegs.co.uk

Back to the keyboard.

Bill Posters
05-07-2007, 06:33 PM
For all the talk of web standards and best practice, if you're lucky(?) enough to have a very specific audience of one, then you only need to concern yourself with what works for that person.
If he can use the site and likes how everything is - as it is - then I wouldn't stress yourself too much about achieving professional quality output.

With all the peer pressure to 'grow our skills', it's easy to forget one very important aspect of creating websites - it should ideally be fun.
Given that the site probably already achieves its goals of reaching and engaging your son, don't get too bogged down with 'improvements' - especially if doing so risks turning a labour of love into just a labour.

Have fun with it. :)

BonRouge
05-07-2007, 06:50 PM
What Bill said. ^^ :)

effpeetee
05-07-2007, 06:59 PM
Thank you both for your reply, but I do have fun with it especially with the difficult bits. I have an inquisitive nature and I just have to try to make things work.

Who knows, I might even get to understand it all one day, then you chaps had better watch out.

Well I can dream, can't I? I do really want to get this site in order while there is still time.

Kind regards,

effpeetee



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum