SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2013
    Location
    Philippines
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is it important to validate the CSS or just the markup?

    Like the title states is it important? Kinda hassle to also fix the css

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,168
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Well, the point of validation is to check for anything that might cause rendering problems. So it's always worth it ... though, if you test your pages in a good range of browsers and find no issues, then validation may be largely pointless.

  3. #3
    SitePoint Zealot
    Join Date
    Mar 2013
    Location
    Philippines
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I also made some research that passing the validation can help your web be visible in using search engines. By the way i'm having so trouble trying to fix my codes in CSS. This are the errors.

    Error 1 attempt to find a semi-colon before the property name. add it

    Error 2#flash Property progid doesn't exist : DXImageTransform

    Error 3#flash Parse Error DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 );

    Error 4#flash Parse Error /* IE6-9 */}

    I'm using CSS-gradient generator and at the moment not familiar in coding gradient manually in my web pages yet.

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,168
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by clestcruz View Post
    I also made some research that passing the validation can help your web be visible in using search engines.
    Search engines may not like your site if it is really poorly coded (hard to understand, complicated, slow loading ...), but they don't care a whiff if your code validates or not. That's not their issue.

  5. #5
    Non-Member
    Join Date
    Apr 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ofcourse it is important to validate the css. The reason behind this is clearly because, if there are errors in the code, the css will not run correctly

  6. #6
    SitePoint Addict bronze trophy
    Join Date
    Mar 2013
    Location
    Oneonta, NY
    Posts
    307
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Clestcruz,

    I would tend to agree with ralph. As long as things are rendering fine and you don’t have any major issues, validation is not that important. I would put it on the list of things to do to your website after you have retired.

    Here is a good post on the subject,

    http://www.vanseodesign.com/web-design/validating-code/

    Best,

    Shawn

  7. #7
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by shamshadali View Post
    ofcourse it is important to validate the css. The reason behind this is clearly because, if there are errors in the code, the css will not run correctly
    The W3C validator doesn't always recognize vendor prefixes or IE filters--both of which are perfectly valid.

    You can use a CSS validator to check for syntax and spelling issues, but be aware that not everything it marks as an error is actually an error.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain


Tags for this Thread

Bookmarks

Posting Permissions

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