A URL (Uniform Resource Locator) is the full address used to access a resource — a webpage, image, file or API endpoint — on the internet. Every URL is unique and tells the browser exactly where to go and how to get there.
Anatomy of a URL
Consider: https://www.example.com/blog/post?id=42#comments
- Protocol —
https://tells the browser which communication protocol to use. - Subdomain —
wwwis the subdomain (optional). - Domain —
example.comis the registered domain name. - Path —
/blog/postpoints to a specific page or resource. - Query string —
?id=42passes parameters to the server. - Fragment —
#commentsscrolls the page to a specific section.
URL Best Practices for SEO
- Use lowercase letters and hyphens between words.
- Keep URLs short and descriptive.
- Include the target keyword when natural.
- Avoid unnecessary parameters and session IDs.
- Use HTTPS everywhere.