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
          • CSS Truncate
            0
            1
            139

          • Fixing Render Blocking Javascript and CSS in the Above-the-fold content
            Khannnnnnnnnnns
            Khannnnnnnnnnns
            0
            9
            90.9k

          • Links not visible in "Google cache text version" but visible in "Fetch as Google" in Webmaster tool
            vivekrathore
            vivekrathore
            0
            5
            341

          • Why is Google Webmaster suddenly started showing hundreds of HTML Improvements
            nurzhyk
            nurzhyk
            0
            6
            308

          • 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

          • Using tables in html
            PCTechGuy2012
            PCTechGuy2012
            0
            3
            449

          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