Code Analysis For Your Website From Seo Perspective
Clean up the Html Code
You should reduce the amount of code on the web page, else search engine spiders may have trouble crawling your site.
Check for HTML validation for opening and closing tags and remove broken links if any.
JavaScript and Style Code
An important part of SEO is the keyword density of a web page. For example, if you have a paragraph of 100 words and you repeat one of your keywords 10 times in that paragraph, then the keyword density for your keyword in that paragraph will be 10%.
It has been said that you should avoid using raw JavaScript code in your HTML code as it reduces the density of your keywords by increasing the amount of words your page contain, if that makes sense.
Semantic Structure
Use header element properly on your site. Search engines use header elements to determine the context and purpose of your web page. Headers provide semantic structure and meaning to web pages, and search engines, like Google, give preferential treatment to web design that use headers properly.
Title and Description Tags
Every page in a web site should have a unique title and description tag with the targeted keyword for that page included. Although search engines seem to pay less and less attention to the tags and meta tags used in a web page, there are some tags that some search engines do use. Google, for example, does use the title tag.
Keywords Meta Tag
The keywords meta tag is one of those that represents the content of a site and is not used by the majority of search engines.
Page Content
Search engine spiders can only deal with text and love valuable content. After all, the whole point of a search engine is to help people find information, and information generally comes in the form of text.
The other issue that all this raises is that the way a visitor will ‘see’ your site is not necessarily the same way a search engine will ‘see’ your site. We are reproducing below one way that search engines will see your site.
DOCTYPE Declaration
The DOCTYPE declaration, which should be listed at the very top of a HTML code of web page, is a statement that tells web browsers how to ‘read’ the HTML code of that web page. This declaration seems to have now become an important part of the SEO structure of web pages. If it is missing, your search engine ranking may suffer.
Robots Tag
This tag enables you to control whether a web page is to be indexed or not, and whether a search engine spider is to follow the links on a page with a view to indexing the pages the links point to. It must be said that this tag is optional in that a web page will be spidered by a search engine spider if this tag is missing.
Presence of Robots.txt File
This file enables you to control which folders of your web site you want indexed and which ones you want ignored. It also enables you to control which search engine spiders you will allow to spider your web site, and which ones you wont. This file is so important that some search engines will not spider your site unless they find this file in the root folder/directory of your web site.