Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts

    Question CSE HTML Validator indecisive?

    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 />
    Last edited by effpeetee; 05-07-2007 at 03:14 PM.

  • #2
    Regular Coder BonRouge's Avatar
    Join Date
    Mar 2006
    Location
    Sendai, Japan
    Posts
    328
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    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.
    Code:
    … {
    	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-wizar.../list-o-matic/

  • #4
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    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.

  • #5
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    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.

  • #6
    Regular Coder BonRouge's Avatar
    Join Date
    Mar 2006
    Location
    Sendai, Japan
    Posts
    328
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What Bill said. ^^

  • #7
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    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
    Last edited by effpeetee; 05-07-2007 at 08:15 PM. Reason: Extra info


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •