Membership Prices Increasing in January.

Get More Website Traffic: Guide to Increasing Your SEO Ranking

Miroslav Pillar
Miroslav Pillar
hero image

Youโ€™ve deployed a promising website, but Google doesnโ€™t show it in search results at all. I know how you feel.

And if you donโ€™t have many visitors, itโ€™s like treasure lost in the desert.

The possible reason why search engines ignore your web is because of poor web accessibility and SEO. These two aspects should not be underestimated when building a website in 2019 (or 2020!), because the more elaborate they are, the more people are able to find and use your website.

Let me explain more in detail what you should know about accessibility and SEO when developing a modern website.

Why does accessibility matter?

Web accessibility basically refers to making website usable for all people, regardless of their ability, education or technology. Elements of the website are adjusted to be accessible for not just computers as it was in the past, but also for phones, tablets or assistive devices.

Keep in mind, that people with disabilities navigate and operate the web in different ways, depending on their individual preferences and needs. They could use assistive devices such as screen readers, screen enlargement applications, voice recognition programs, etc. How these devices operate on a website is explained later in this story.

If you are a web developer, I am sure you already heard about term web responsive design. With the proper use of HTML and CSS, it makes your website accessible for every screen size โ€” phone, tablet, high-resolution retina displays, etc.

In 2019 it should be pretty natural to keep these aspects in mind during the project development.

What are the impacts?

The main impact is that your website is usable for a wider community, therefore you can reach higher traffic and obviously earn more money. Another side-effect is that by improving accessibility you also improve SEO, which we will discuss later in this article.

Such implementation costs more time and money of course. If you are saving costs, you probably donโ€™t take accessibility and SEO as a priority, but in the long-term, it will pay off. Besides the impacts mentioned above, you also fulfill most of the requirements in digital marketing.

โ€œBest way to sell something: donโ€™t sell anything. Earn the awareness, respect, and trust of those who might buy.โ€

โ€” Rand Fishkin

How can I improve accessibility?

You can do it by implementing specific attributes to HTML tags. By using these attributes you mark tags, so devices mentioned earlier could recognize them and handle navigation on the website.

The desired attributes are tabindex, aria-label and alt.

Tabindex

This attribute improves keyboard accessibility.

Put simply: for a website to be accessible, it must work without the use of a mouse. This is because many assistive devices rely on keyboard-only navigation. As such, it must be possible to use all of your siteโ€™s major features via a keyboard and nothing else. This includes accessing all pages, links, content, and so on.

Who depends on this feature:

  • People with physical disabilities who cannot use the mouse

  • People who are blind, and cannot see the mouse pointer on the screen

  • People with chronic conditions, such as repetitive stress injuries (RSI), who should limit or avoid the use of a mouse.

Let me demonstrate an example, how to implement such a feature:

<label>First in tab order:<input type="text"></label>
<span tabindex="0">Tabbable due to tabindex.</span>
<div>Not tabbable: no tabindex.</div>
<button tabindex="0" onClick={() => handleClick()}>Submit</button>

If you test this using Tab key on your keyboard, <input> tag is naturally tabbable, because of HTML standards. However, <span> and <button> are tabbable only because of tabindex="0" and <div> is not tabbable at all.

Avoid using tabindex with positive values. Doing so makes it difficult for people who rely on assistive devices to navigate and operate page content. Instead, write the document with the elements in a logical sequence.

On the other hand, using negative values usually means that element is not accessible via sequential keyboard navigation, but could be focused with Javascript or visually. Itโ€™s mostly useful to create accessible widgets with JavaScript.

ARIA

As Google Developers says, Web Accessibility Initiativeโ€™s Accessible Rich Internet Applications specification (letโ€™s stick just with ARIA) โ€˜is good for bridging areas with accessibility issues that canโ€™t be managed with native HTML. It works by allowing you to specify attributes that modify the way an element is translated into the accessibility tree.โ€™

I know it sounds complicated. But trust me โ€” itโ€™s easier to understand than it looks like:

Source: Google developers

Using ARIA attributes, you can give the element the missing information so the screen reader can properly interpret it. So ARIA simply modifies existing element semantics or add semantics to elements where no native semantics exist (e.g. by screen readers).

Let me demonstrate it on a simple example using aria-label:

<button aria-label="Close" onClick={handleClose()}>X</button>

There are many types of ARIA attributes you can explore, but the purpose is still the same โ€” to help navigate assistive devices on the website.

Alt

This attribute is used in <img /> tag as a backup, if a website is viewed on a device or mode, which does not support images, e.g. voice assistant when reading.

Example: <img src="link-to-puppy-dog" alt="white puppy" />

The second reason is that not everyone has a blazing-fast internet speed connection so in the meantime before loading image, alt text is displayed and the user immediately knows what is the image about.

What should I know about SEO?

SEO refers to search engine optimization, which is used by search engines such as Google, Bing, etc. It includes techniques and methods to increase the visibility of your website in search results. It is also an important part of digital marketing these days.

If youโ€™re wondering how SEO works, here is a quick breakdown:

Search engines scan your website, looking at design and content elements to help them determine what type of topics your website discusses and how user-friendly the site is. This process is called crawling. It helps the search engine deliver more relevant and useful search results to its users.

As discussed earlier SEO is affected also by the state of accessibility. I would say, they overlap each other in many cases. However, the main benefit of good SEO is that your website receives a better Search Engine Results Page (SERP) ranking in search engines. It simply means your site gets higher in search results if a user inputs phrases or keywords regarding the content of your website.

โ€œThe best place to hide a dead body is the second page of Google search.โ€

โ€” anonymous

How can I actually improve SEO?

Besides working on accessibility it can be improved by putting <meta> tags into the <head> section. They provide metadata about the HTML document. Metadata will not be displayed on the page but will be machine parsable.

Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata. They are used by browsers (how to display content), search engines (keywords), or other web services.

Here is the example of page description specification:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta name="Description" content="Portfolio website about projects, interests and skills. Author: Miroslav Pillar." />
    </head>
    <body>
        // Your content here..
    </body>
</html>

The description is displayed below the title of the search result and itโ€™s instantly clear to the user, what is the page about:

Description meta tag

The Open Graph meta tags

Open Graph (OG) meta tags are a special type of metadata. Implementation of OG meta tags basically means that you can edit your link preview when you want to share your website on social media such as facebook, linkedIn, etc. This is great for marketing purposes as you certainly donโ€™t want to share links with a blank image or poor description.

There are a couple of specific OG meta tags you can use:

<html>
    <head>
        <title>The Rock (1996)</title>
        <meta property="og:title" content="The Rock" />
        <meta property="og:type" content="video.movie" />
        <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
        <meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
        <meta propery="og:image:secure_url" content="https://ia.media-imdb.com/images/rock.jpg" />

    </head>

</html>

Let me break it down into smaller pieces:

  • og-title: The title of your shared link

  • og-type: The type of your object, e.g. video.movie, article, etc.

  • og-url: The canonical URL of your link

  • og-image: The URL of the image in the shared link

  • og-image:secure_url: An alternate URL to use if the webpage requires HTTPS

If you want to look at preview how would your sharing link look like you can try Sharing Debugger from Facebook. Just paste your link there and it will show you what is still missing. For LinkedIn, you can use Post Inspector.

How do I know, when is it good enough?

To test accessibility & SEO I highly recommend using Lighthouse plugin, in which you see ratings in categories such as Performance, SEO, Accessibility and Best practices. It also gives you suggestions about what to improve. The only requirement is that the website must be deployed. Also, use it in the incognito mode of a web browser to not receive distorted results.

Lighthouse report overview

However, today it is required to work efficiently, especially in web development. You can spend hours and days by improving accessibility, but everything costs time, effort and money. Also because the web development industry is dynamically evolving and accessibility standards are changing regularly, it is required to invest some time into maintenance.

Therefore it is necessary to be able to decide, how much costs you are willing to spend on this topic. That depends truly on you and your business.

Thank you for reading and stay sharp!

By the way, you can also check out all the ZTM courses available here.

More from Zero To Mastery

Web Developer Monthly Newsletter ๐Ÿ’ป๐Ÿš€ preview
Web Developer Monthly Newsletter ๐Ÿ’ป๐Ÿš€

77th issue issue of Andrei Neagoie's must-read monthly Web Developer Newsletter: Frameworks Are Dead, JS Without A Build System, and much more. Everything you need to know from the world of web dev from last month.

How to Become a Data Analyst: Step-By-Step Guide preview
How to Become a Data Analyst: Step-By-Step Guide

With 95,000+ jobs available and $80,000+ salaries, it's the perfect time to get started in the field of Data Analysis. Become a Data Analyst this year!

[Full Guide] Learn To Code For Free in 2024 & Get Hired in 5 Months (+ Have Fun Along The Way!) preview
[Full Guide] Learn To Code For Free in 2024 & Get Hired in 5 Months (+ Have Fun Along The Way!)

Updated for 2024 (including A.I. & ChatGPT). In 2014, I taught myself how to code & got hired in 5 months. This is the step-by-step guide I used. Now 1,000s of other people have also used it to learn to code for free & get hired as web developers.