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.
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.
- Add proper meta tags
- Add language
This tells the search engines the language your website uses.
- Optimize your title
Your title should be optimum. A good title should be from 10 to 70 characters.
- Add favicon
Favicon is used for branding. It appears along with the title of the page. A favicon helps users quickly recognize your website.
- 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.
- Add meta description
- Add language
- 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.
- Work on the accessibility of your website
- Add alt tags and title to all images
<img src="example.jpg" alt="Example" title="Example" />
- Add a title to all href links.
<a title="Example Website" href="http://example.com">Link</a>
- Use proper contrast
- Add alt tags and title to all images Example:
- 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
- Speed up your website
- use compression in your webserver
- Minify your assets
- Use CDN to serve static files
<script async src="script.js"></script>
However, for CSS, I use a trick that I found here. The code is as follows: ```html
- Server your assets from cookieless domain
- Properly configure your web server for security
- Use HTTPS
- Setup appropriate headers
At a minimum I suggest you to set up the following headers:
- Submit to search engines
- Submit to Google Search Console.
- Submit to Bing Webmasters
- Submit to Yandex
- Keep your website fresh
- 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
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*
- 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: