Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

W3C Compliant - Google

  • 23-09-2010 9:06pm
    #1
    Registered Users, Registered Users 2 Posts: 244 ✭✭


    Newbie to web design but often wondered why there is so much space on either side of a page left blank? Back to the browser and Google search engine to fine what's the story. Noted the clean white boarder on both sides of the search box except for one area only several px hi & wide. Then I decided to see how compliant Google were with W3C and !!!!! 38 errors 2 warnings!!

    128693.jpg


Comments

  • Posts: 0 [Deleted User]


    Newbie to web design but often wondered why there is so much space on either side of a page left blank?
    When designing a web page, you have to decide whether to go for fluid width (expands to fill the width of the client's display) or fixed width (has a set width in pixels). A fluid width, on the face of it, sounds like a good idea, but when you consider the diversity of screens and mobile devices that could be used to view the page, it is nigh on impossible to do a fluid width layout that works well on everything from a 300px phone screen to a 1920px LCD monitor.

    Most computers support 1024px width at a minimum. If you design for this width, you may have a tiny strip of blankness on either side of the page (most designers use 960 or 980px to allow for the extra width that the scrollbars take up). The same website will have much larger blank areas on either side when viewed on a 1920px monitor. Most smartphones rely on zoom and scroll techniques to render the webpage acceptably on a screen that cant support 1024px width. Essentially the 960px width is a lowest common denominator to give you a pixel-accurate layout across a broad range of devices.
    Then I decided to see how compliant Google were with W3C and !!!!! 38 errors 2 warnings!!
    W3C compliance is a good sanity check for well formed HTML and a nice ideal. If you're page isn't rendering right, a W3C check can often highlight the problem. But there's a lot more to good code than the W3C spec guidelines. Any deviations from the spec on the google pages are certainly not down to sloppy coding by the google folks, they're done for good technical resons.

    http://www.youtube.com/watch?v=FPBACTS-tyg


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    I just had a look and the validator seems to be objecting to JavaScript code, viewing a valid "less than" character - "<" as the start of a tag!

    Don't ever remember it doing that before!


  • Posts: 0 [Deleted User]


    Liam Byrne wrote: »
    I just had a look and the validator seems to be objecting to JavaScript code, viewing a valid "less than" character - "<" as the start of a tag!

    Don't ever remember it doing that before!


    Yup - I've seen the checker trip up over inline javascript before. It usually throws a wobbly when I put google maps in. If I recall, it's usually to do with displaying a marker with HTML code in it.


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Yup - I've seen the checker trip up over inline javascript before. It usually throws a wobbly when I put google maps in. If I recall, it's usually to do with displaying a marker with HTML code in it.

    That (the HTML tags) I could understand, but from what I've done quick checks on it seems to be tripping up on basic if a<b { code!


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭cormee


    Yup - I've seen the checker trip up over inline javascript before. It usually throws a wobbly when I put google maps in. If I recall, it's usually to do with displaying a marker with HTML code in it.

    You should escape your html tags in JavaScript - ie. <\/strong>


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    Also note that Google appear to use a table for layout!


Advertisement