With the contents available, it's time to program it into the website format. This section covers all the important points for web programmer when converting the contents into web format.
There is a strict rule when it comes to HTML Headers.
H1 is strictly page title and there should only be 1 H1 in the whole page.
H2 - H6 are the actual headers to organize the contents. H2 - H6 should be organized in a descending order of importance and a hierarchy of importance is formed. One example of the formed hierarchy would be:
Richard Orchard <h1>
|
+--- Who We Are <h2>
| |
| +--- Distillery <h3>
| |
| +--- Grape Agriculture <h3>
|
+--- What We Do <h2>
| |
| +--- Fine Wines <h3>
| |
| +--- Holiday Retreats <h3>
|
+--- Where We Are <h2>
TIP: as you can see, to create an effective reading flow, try to stick to H2-H3 levels. That way, readers would not feel the complicated and have a tough read up.
Oh, there are a lot of rules for links.
Instead of creating a simple <a href="...">...</a>
anchoring link, you should state the relationship for the sake of the crawler (e.g. <a rel="canonical" href="...">...</a>
).
For example, if the link is not to follow and it is actually user generated contents, you want specify the link as follows:
<a rel="nofollow ugc" href="..."> ... </a>
The point is, tell the crawler about the link relationship. Otherwise, it will just crawl into the link and gives false data.
There is a limit of links in a page before the crawler concludes the page as link spam. Hence, use it with limitations.
Ensures you redirect the page before deleting it. This allows your existing visitors to update the new sites. Use 301 redirect if it is a permanent. Also, avoid redirect chaining ( A --> B --> C
=corrects it to=> A --> C
)
Some attentions needed for images.
Image is a huge culprit of slow pages. Hence, you should optimize it based on maximum availability. There are strategy such as using srcset
to state which images to load by screen size (mobile loads smaller version while widescreen loads high definitions). You can also optimize based on resolutions such as PNG-24 for true color while PNG-8 is for 256-bit colors.
Design really matters here as the industry is moving to lightweight and simplified presentations. Don't forget thumbnail as they are frequent display.
Example:
<img srcset="... 640w, ... 1280w, ... 2040w" src="..." alt="..." />
This is the alt
attributes of the image. Crawlers don't do image reading so alt
attributes are there to help them comprehend the image quickly and easily.
There are a lot of ways. One easy way is to attach the attribute "loading=lazy
" into it. The goal is NOT to load images for unread section (visitor possibly does not need it at all). This can save bandwidth.
This is related to text formatting.
Ensure the text, bullets, color contrast (between text and background), paragraph breaks, supported media, text styling are used correctly and sharply presented.
This is related to the meta tags.
Keep title to 50~60 characters (due to the cross display on search ranking, social network sharing, thumbnail, etc). The title must have your main keyword (otherwise, what's your content about, misleading visitors?!).
This is to let crawler learn about the page. It may or may not choose it to be the search description. Although it is no longer compulsory, you should keep it in just in case it decided to use it as the descriptor. Keep the length 150-300 characters max.
The meta description should be relevant to the page, usually in a form of summary or abstract.
The page URL has some rules too.
Between https://example.com/desserts/ice-cream
vs. https://example.com/asdf/422?=recipe-23432-1123
, the former is highly preferred.
For URL category planning, always plan according to contents and ensure the page is related to the category. A bad example would be:
https://www.fruitfarm.com/citrus/a-car-brand
Since a car brand has no relation to fruit category, moreover fruit farm, it does more harms than good.
Avoid over categorization, such that:
https://www.fruitfarm.com/rutaceae/Aurantioideae/citrus/orange
can be simplified as:
https://www.fruitfarm.com/orange
Always include the keyword in the URL. For example, if the title is "orange", it is making sense to use the following title:
https://www.fruitfarm.com/orange
For site URL contains bad URLs beyond repair, you can use dynamic links services to mask the URL using 302 redirect. Example:
https://goto.example.com/orange --> https://www.fruitfarm.com/rutaceae/Aurantioideae/citrus/orange
Do not use space and avoid underscore (rarely interpreted).
https://www.example.com/drinks/icy-orange-juice
keep everything small characters if possible.
https://www.example.com/drinks/icy-orange-juice
It's 2020, strictly use HTTPS or HTTP/2.
This section covers all Javascript tags.
Do not block the main contents loading. Javascript loading should makes use of the async or defer (preferred) <script>
tag.
Website (HTML+CSS or HTML-only) MUST work in the event of a Javascript failed to load.
Reduce file size for optimized download speed.
This section covers the <link>
tag.
<link>
tag can be blocking. Hence, try to keep it minimum.
When CSS fails, the website (HTML or HTML + Javascript) MUST work.
You must use the link tag to specify canonical website (e.g. AMP vs. Conventional HTML). Otherwise, the search engine can get confused and picked the wrong primary source.
Condense the CSS to reduce its filesize for optimized loading.
CSS has no dynamic loading on its own and neither browser will selectively loads CSS files based on screen size or resolution. Hence, You should condense common CSS codes into a single files; you only separate them when the CSS is specific to page (or possibly use inline CSS).
This section covers all user experience designs.
It's 21st century, everyone is using mobile. Therefore, the website design must be responsive and friendly to mobile users.
Implement AMP when applicable, and available. It focuses on mobile users.
When request indexing, always go for mobile first over desktop as user density is higher in the mobile site. This is also subjected to the website intent so not all website must comply to this value.
As time goes by, you should improve the weight of the pages to the point it's serving up to speed.
Remember your target audience. Facilitates i18n whenever sensible.
That's all for SEO Technicalities (Programming).