Website with clean codes

If a page renders correctly and everything works in current browsers, then forget W3C.

Yes bad code can slow things down but by and large, nobody writes perfect code, just as nobody writes perfect English, there are always some little errors like using a ; instead of : for instance.

The main elements to check are
1. that google has cached your entire page content (do a search on google for site:yourdomain using either the www. or whichever version you use, plus the .com or .co.uk etc this will bring up all the pages Google has for your site, then click the 'cache' link. view the page and if that is all there and working then that's stage 1 done.

2. Page speed (Google core web vitals) go here https://developers.google.com/speed/pagespeed/insights/ and check the page speed. Ideally you want all green bars, but amber is acceptable, red means a little bit of work has to be done.
 
  • Like
Reactions: Justin B1212
Upvote 0

gpietersz

Free Member
  • Business Listing
    Sep 10, 2019
    2,795
    2
    748
    Northwhich, Cheshire
    pietersz.net
    @Justin B1212 it depends on the errors. In general fix the errors, but not all the warnings, but look at all.

    Looking at your page, the unneeded type attributes are harmless. The CSS errors might change the look of your page, but if you are happy with it at all sizes its not a big problem. Mostly, again, unnecessary but harmless.

    With regard to the missing alt attributes, you can often just add alt="" if its an image that could just be skipped (e.g. by blind people using screen readers) or actually useful text if not.
     
    • Like
    Reactions: Justin B1212
    Upvote 0

    fisicx

    Moderator
    Sep 12, 2006
    46,903
    8
    15,499
    Aldershot
    www.aerin.co.uk
    @Justin B1212 - if they got that bit of advice wrong one wonders what else is incorrect.
     
    • Like
    Reactions: Justin B1212
    Upvote 0

    gpietersz

    Free Member
  • Business Listing
    Sep 10, 2019
    2,795
    2
    748
    Northwhich, Cheshire
    pietersz.net
    @fisicx The validator is a useful tool, but it highlights possible problems, rather than giving you a list of things you have to fix. I used to use it. The easiest way is to run it locally during development, rather than needing to have a public site the w3c instance can reach.

    For example, one of the CSS errors is highlights would prevent anything it applied to having the desired spacing, but as the class is not actually used.

    You are right that its probably not likely to help much with SEO - the time when spiders would choke easily on bad HTML or CSS is long behind us.
     
    • Like
    Reactions: Justin B1212
    Upvote 0

    tan_lan

    Free Member
  • Oct 7, 2014
    304
    54
    76
    The problem with the w3c validator is that is considers all errors to be equal.

    A missing alt tag on a generic image is in a very different ball park to malformed html. Malformed html may work in most browsers, but thats not to say a search engines will parse it in the same way.
     
    • Like
    Reactions: Justin B1212
    Upvote 0

    fisicx

    Moderator
    Sep 12, 2006
    46,903
    8
    15,499
    Aldershot
    www.aerin.co.uk
    Upvote 0

    Latest Articles

    Join UK Business Forums for free business advice