What I learned about SEO from my blog

Paras Nath Chaudhary · February 17, 2020

Let me tell you that I am not an SEO expert. These are some of the key learnings while I was optimizing my website for Search Engines. There have been many times when I thought of starting my blog, wrote a few articles and stopped. After a couple of months or a year, the same thing again comes to my mind and I start again. This has been happening for a long time. While trying to start a blog, I have also had my hands-on Search Engine Optimization (SEO). If the posts I write don’t reach you, then its possibly a waste of time. So, I tried to make them optimized for SEO. In my previous tries, I learned not so much that I have learned this time. So, I am going to share some of the things I have been doing for this one.

One quick note here. The tips I am going to share are written from a developer’s perspective. That means, to implement some of it you might have to know some programming and server configuration. However, if you don’t know someone from your team might be able to help do it.

With a hope that these would help you with your website’s SEO.

  1. URL
    It’s always good to have your brand name in the domain. And also The next thing is the URL for your website should not be cryptic (hard to remember ) or very long.
  2. Add proper meta tags
    1. Add language
      This tells the search engines the language your website uses.
    2. Optimize your title
      Your title should be optimum. A good title should be from 10 to 70 characters.
    3. Add favicon
      Favicon is used for branding. It appears along with the title of the page. A favicon helps users quickly recognize your website.
    4. Add canonical links
      Using canonical links helps the search engines identify the original content and duplicate content. For example, you have content hosted in abc.com/first-post and you have the same post in xyz.com/first-post. Then you can set up a canonical post on your abc.com website to xyz.com so that the search engines understand. If you don’t have the content on another website. It is still a good idea to use canonical links to reference to the same link. For canonical URLs, use absolute URLs instead of relative URLs.
    5. Add meta description
  3. Use proper header tags
    Use only one H1 tag on a page. This should be the most significant phrase you want to highlight on the page. Use other header tags like H2, H3, etc according to the phrase’s significance on the page. I usually go with the title of the page for the H1 tag.
  4. Work on the accessibility of your website
    1. Add alt tags and title to all images Example:
       <img src="example.jpg" alt="Example" title="Example" />
      
    2. Add a title to all href links. Example:
       <a title="Example Website" href="http://example.com">Link</a>
      
    3. Use proper contrast
  5. Use schema to structure your data
    Despite the advancements, Machines still cannot understand what we humans can. So, it is a good idea to structure your data so that machines can actually understand what your website is about. You can learn more about this at here
  6. Speed up your website
    1. use compression in your webserver
    2. Minify your assets
    3. Use CDN to serve static files
    4. Defer your CSS and javascript files
      It’s quite easy to load javascript files asynchronously. To do so simply use the async keyword as follows:
       <script async src="script.js"></script>
      

      However, for CSS, I use a trick that I found here. The code is as follows: ```html

    ```

    1. Server your assets from cookieless domain
  7. Properly configure your web server for security
    1. Use HTTPS
    2. Setup appropriate headers
      At a minimum I suggest you to set up the following headers:
      1. X-Frame-Options
      2. X-Xss-Protection
      3. X-Content-Type-Options
      4. Feature-Policy
      5. Content-Security-Policy
  8. Submit to search engines
    1. Submit to Google Search Console.
    2. Submit to Bing Webmasters
    3. Submit to Yandex
  9. Keep your website fresh
  10. Create a sitemap file
    A sitemap is usually am XML file that tells web crawlers about the structure of your website. An example of sitemap is as follows: ```xml <?xml version=”1.0” encoding=”UTF-8”?>
https://parasnath.com.np/ 2020-01-03 weekly 0.8 https://parasnath.com.np/blog/ 2020-01-03 weekly 0.9
12. Create proper robots file, an example is as follows:
```txt
User-Agent: *
Disallow: /readme.md

# Directories
Disallow: /zohoverify/
# Sitemap
Sitemap: http://parasnath.com.np/sitemap.xml

User-Agent: Googlebot
Allow: /*.js*
Allow: /*.css*
Allow: /*.jpg*
  1. Add Analytics
    Adding analytics is crucial for your blog to better understand your audience.

I know, I haven’t covered all that I have done with my blog. I will keep elaborating on the points I have made above in my later posts. In the meantime I will list some of the tools I use for my SEO here:

Twitter, Facebook