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. Technical SEO Issues
    4. Basic SEO HTML

    Basic SEO HTML

    Technical SEO Issues
    4 4 603
    • 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.
    • wparlaman
      wparlaman last edited by

      Hello Everyone,

      One place I am weak is coding for SEO. I need to get better.

      One question I do have is can anyone explain why it's important to place css and java script files in an external file?

      How do you do this and how do you know if it's already being done?

      If it has not been done on a site is it hard to go back and do?

      I understand this is important from a site load time issue

      Thanks,

      Bill

      P.S. Can anyone recommend a resource where I can learn proper html coding for SEO?  Thank you!

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

        Speeds up the download time of the page - good for Google and good for users. Helps browsers cache objects and speeds up future page views and pages from the same site.

        Look at the source code to see if you're linking to a CSS/JS document or displaying it on page.

        Easy to change if it's on page - stick it in a new document and link to it. Google around for help.

        1 Reply Last reply Reply Quote 1
        • DougRoberts
          DougRoberts last edited by

          A good place to start is to look at google's webmaster guidelines:

          http://support.google.com/webmasters/bin/answer.py?hl=en&answer=35769

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

            Hi Bill!

            A couple of your questions that haven't been answered yet:

            How do you do this and how do you know if it's already being done?

            When you look at the code for a page, if you see a lot of code within tags, that means that the CSS is on the page rather than in an external file.

            You can do the same with JavaScript. If there is a lot of code within the tags in the source code, you know there is JavaScript on the page instead of in an external file.

            If it has not been done on a site is it hard to go back and do?

            It is very simple to take this code, put it into an external file, then link to it like we do on this particular page's code:

            <link type="text/css" rel="stylesheet" href="[/q/moz_nav_assets/stylesheets/production/all.css?0.4.25](view-source:http://www.seomoz.org/q/moz_nav_assets/stylesheets/production/all.css?0.4.25)" />
            

            That is what it looks like when you link to a CSS external file.

            If possible though, I'd definitely have someone who knows and understands the code help you out at first. There's nothing more infuriating that making what you think is a small change to a JavaScript file and it end up breaking the whole site. 🙂

            Good luck! And I hope this helps a bit.

            1 Reply Last reply Reply Quote 2
            • 1 / 1
            • First post
              Last post
            • does <base> in html affect seo?
              Dalerio-Consulting
              Dalerio-Consulting
              1
              2
              63

            • Will presentational HTML tags actually be having a negative SEO effect?
              SanjidaKazi
              SanjidaKazi
              0
              4
              712

            • Strange problem with basic html anchor tag linking to my domain
              Maayboli
              Maayboli
              0
              4
              401

            • SEO Ultimate Plug in problems for SEO MOZ
              RuthBurrReedy
              RuthBurrReedy
              0
              4
              122

            • Rel="canonical" of .html/ to .html
              irvingw
              irvingw
              0
              3
              154

            • Off-page SEO and on-page SEO improvements
              josh-riley
              josh-riley
              0
              5
              918

            • SEO basics for Q&A tool
              accessKellyOCG
              accessKellyOCG
              0
              4
              405

            • SEO WP Plugin Battle: Yoast Wordpress SEO vs All in One SEO?
              vijayvasu
              vijayvasu
              0
              3
              735

            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