www vs Non-www
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://tldfyi.com/iframe/glossary/www-vs-non-www/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://tldfyi.com/glossary/www-vs-non-www/
Add a dynamic SVG badge to your README or docs.
[](https://tldfyi.com/glossary/www-vs-non-www/)
Use the native HTML custom element.
The www vs non-www choice determines whether your website is accessible at www.example.com or example.com. Both are valid; the important thing is to choose one as [[canonical-url|canonical]] and redirect the other with a [[301-redirect|301 redirect]].
Example
Most modern websites use the non-www version (example.com) as canonical, redirecting www.example.com to it with a 301.