featured-image

Google Ignores Capitalization In HTML

When you hand type HTML code, which I do in all these blog posts – yes, I am using something really old school but I like the control – sometimes you have typos in your HTML code. The most common typo I have is doing an a href tag but the A I capitalization because I need to press shift to trigger a tag and right after that comes the A.

I always hate the way it looks to write a capital A in the href tag but I am always in a rush and I know it works either way, so I leave it.

But does it give Google any issues? The answer is no, Google expects these typos and since it works in a browser, it works for Google Search.

John Mueller of Google was asked about this on Twitter (see what I did there?) and he said “IMO capitalization in HTML attribute names is ignored (eg in XHTML they’re often completely in caps).” He did add that it makes sense to do it lowercase and be consistent but hey.

Here is John’s tweet:

I can probably do a quick find and replace on this syntax and fix all my uppercase As in the a hrefs…

Forum discussion at Twitter.

Source

Post Your Comment

Your email address will not be published. Required fields are marked *

Copyright © 2020 Maxxhost.net. All rights reserved.
<!--Start of Tawk.to Script--> <script type="text/javascript"> var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date(); (function(){ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; s1.async=true; s1.src='https://embed.tawk.to/5e4c036e298c395d1ce88e95/default'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); })(); </script> <!--End of Tawk.to Script-->
Register your Domain