On-page SEO optimization is one part of search engine optimization and, as the name suggests, it covers all the measures and modifications that are made on your own website. There are several elements on your website which you can influence and which enable search engines to index your content and understand what it is about.
If your website is to be able to achieve any rankings in SERPs, it has to be indexable.
You can affect your website’s indexability, for example, using a small file called “robots.txt.”
This is a text file that is stored on your server. These file stores instructions for bots that specify which areas they may crawl and which they may not. When a search engine bot visits your website, it immediately looks for this file and follows its instructions.
The simplest form of a robots.txt file looks like this:
You then save this content in a text file and save that in your website’s top-level directory, for example:
http://www.mysite.com/robots.txt
The robots.txt file can also specify areas where the bot is not allowed to crawl. This “ban” is applied using the word “Disallow”:
User-agent: * (all bots)
Disallow: /customer-login
Disallow: /payments
In principle, you should not restrict the bot with too many exceptions. Search engine bots
should be allowed to crawl any areas that are important for displaying the website as users
can see it. Another element you can use to manage your website indexing is the XML sitemap. This is a machine-readable list of all your website’s important URLs. You can create this list in the Google Search Console (a free Google tool for managing and monitoring your website). The XML sitemap gives Google a reference to all your website’s URLs.
The structure of your URLs can also help search engines to better understand your website content. If you can alter the URL so that, for example, it includes the name of your website, you should make use of this. These are so-called “speaking URLs.”
You can also help search engines by adding alt attributes (“alt” stands for “alternative”) to all your images. This metadata consists of a short piece of text which is displayed in the browser as an alternative if the graphic cannot be displayed because of technical problems.
The alt attributes have another purpose, too: They make your website more accessible. For example, reading programs for blind Internet users can read alt attributes.
In addition to the actual title bar of your site, every web page that you create has a so-called “title tag.” This is the snippet of text that appears in the top left-hand corner or in your web browser tab. The title tag is also shown as a blue link that appears in search engines when your website is listed in a SERP. Title tags have up to 70 characters, so you should choose your words wisely. The title tag is a ranking criterion for Google and other search engines. As title tags are easy to optimize, you should definitely address this issue.
The “meta description,” in contrast, is a piece of text that describes what a specific page is about. Meta descriptions are typically displayed as text below the blue links in search engine results. If you have no meta description, search engines usually take a piece of text at random from the content referenced by the link. The meta description is limited to 175 characters.
When search engine crawlers scan your website, they look for clues about the content on your pages. If you use different headline tags, you structure your website’s content and make it easier for visitors and crawlers to understand it.
INTERNAL LINKS
Previously, we have only discussed inbound links, i.e., links that lead to your site via other websites. If you create content on your blog or specific web pages, you should also nonetheless refer to other pages within your website.
You can do this by adding a link between the pages. We recommend that you use anchor text to do this. When you use anchor text, it suggests that the linked page is about the keyword or phrase in a web page to a particular subject or keyword. Make sure that image files and other
Meaningful anchor text also greatly improves user-friendliness. Important: We recommend that you always use the same keyword to link a target page. This helps search engines to recognize that this page in your domain must be extremely relevant to a particular subject or keyword.
Search engines also assess, in great detail, the technical aspects of your website. For example, how quickly the site loads plays a major role in your website ranking. Search engines also take into account how accessible your server is. Because, ultimately, Google and other search engines want to provide the best possible search results. So, the aim is to guide visitors to sites which work well, and which can always be accessed and used.
MOBILE OPTIMIZATION
Internet use is now increasingly mobile. Since 2015, mobile-friendliness has been a ranking factor for Google. If your website is not optimized for mobile devices, in statistical terms, you will be giving 50 percent of your visitors a poor user experience. So good, long-term, on-page optimization also always includes optimizing your website for mobile.
This includes all the measures that enable your content to be used easily on smart-phones, etc.
Keep in mind that mobile users will be using touch screens with your website. So buttons should not be too close together.
A detailed tutorial on mobile optimization is available here.