Basic SEO for Web Developers Part 1
-
Important HTML Elements
1. Title Tag
<head> <title>Page Title</title> </head>
Best Practices
- Less than 512px (50-70 characters)
- Important keywords near the beginning
- Each title should be unique
2. Meta Description Tag
<head> <meta name="description"content="This is an example."> </head>
Best Practices
- Best under 155 characters
- Each description should be unique
- Well written descriptions influenceclick-through rate
3. Images
<img src="img/keyword.jpg" alt="keyword" width="100" height="100">
4. Hyperlinks
-
Text Link
<a href="https://www.example.com/webpage.html">Keyword in Anchor Text</a>
-
NoFollowed Link
<a href="https://www.example.com/webpage.html" rel="nofollow">Keyword in Anchor Text</a>
-
Image Link
<a href="https://www.example.com/webpage.html"><img src="/img/keyword.jpg" alt="keyword" width="100" height="100"></a>
Best Practices
- Preference: HTML links over JavaScript
- Use "nofollow" for paid links and un-trusted content
- For image links, the alt attribute serves as anchor text
5. HTTP Status Codes
- 200OK/Success
- 301Permanent Redirect
- 302Temporary Redirect
- 404Not Found
- 410Gone (permanently removed)
- 500Server Error
- 503Unavailable (retry later)
6. Webmaster Tools
- Google Webmaster Tools - https://www.google.com/webmasters/tools/home
- Bing Webmaster Tools - http://www.bing.com/toolbox/webmaster/
- Yandex Webmaster - https://webmaster.yandex.com/
7. Canonicalization
Common Duplicate Homepage URLs
- https://www.example.com
- https://example.com
- https://www.example.com/index.html
- https://example.com/index.html
- https://example.com/index.html&sessid=123
Canonicalized URL Best Practices
- Preferred URL = https://example.com/
- Place the following in <head> section to indicate preferred URL:
- <link href="https://example.com/" rel="canonical" />
8. URL Best Practices
SEO Tips for URLs
- Choose shorter, human-readable URLs with descriptive keywords
- Exclude dynamic parameters when possible (see Canonicalization and Pagination)
- When possible, place content on the same subdomain to preserve authority
- Recommended: https://example.com/blog
- Less Ideal: https://blog.example.com
I'll post next part asap.
Thank you all for your time in reading this! -
Nice Post .. This is very important for every web developers
-
Thanx bro
-
-
Well Done
-
@Anjana_Gihan thanks
-
Nice Post Bro...!!
-
@Gen2vi thanks mate...