The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. Google HTML, CSS and javascript styleguides ?

    Google HTML, CSS and javascript styleguides ?

    Web Design
    3 3 135
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • esiow2013
      esiow2013 last edited by

      Who's following the Google style guides especially in HTML, CSS and javascript? What are the benefits of following the style guides? I am thinking of sending the style guides to our web development team before we launch our new site but I think there might be some conflicts. I'm an SEO and not programmer or web developer and I'm sure there are some "rules" that these web dev guys should follow and break as well.

      Thanks in advance! 🙂

      1 Reply Last reply Reply Quote 0
      • ProfessorBlak
        ProfessorBlak last edited by

        Hello,

        So far its just cleaning up the code using best practices. Usually means more work for programmers and designers if they haven't been keeping up with it. A lot of programmers like to write their code a certain way usually because they have been doing it for a while. If they get no errors from validators or if everything works, they see no reason to change how they write it!

        For example, I use the
        tag for a line break, where the styleguide recommends
        . Both achieve the same result however, I feel comfortable knowing my tags are closed />.

        Same with the tag. I've gotten used to using it. So not using feels odd and like somethings missing.

        1 Reply Last reply Reply Quote 0
        • zeepartner
          zeepartner last edited by

          Hi
          It's always difficult to give styleguides to developers if you're not one yourself... As ProfessorBlak mentioned, this stylguide is not always optimal. Personally, I think trying to achieve W3C Validity is a better standard. But even here, it's not always possible, so might have to cut your developers some slack...
          As a guideline, I think this stylguide makes sense. Developers should at least be able to give a good explanation if they do not produce code that validates and/or does not follow the styleguide.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Google tag manager on blocked beta site - will it phone home to Google and cause site to get indexed?
            Nobody1596916721222
            Nobody1596916721222
            0
            4
            234

          • Google Malware Message
            aaseo123
            aaseo123
            0
            8
            333

          • HTML verses CMS
            Chris.Menke
            Chris.Menke
            0
            6
            150

          • Google Webmaster Message!!
            askshopper
            askshopper
            0
            4
            273

          • Google Analytics
            masdigitalmedia
            masdigitalmedia
            0
            6
            304

          • CSS vs Javascript vs JQuery drop down navigation
            WilliamCarr
            WilliamCarr
            0
            7
            4.5k

          • Given the lastest Google update, should I rewrite my Flash site or try to present an alternative HTML/CSS site?
            W3designer
            W3designer
            0
            3
            446

          • Javascript Redirects
            CoolSEOnStuff
            CoolSEOnStuff
            0
            3
            1.3k

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy