Google’s John Mueller said on Twitter that Google ignores capitalization in HTML tag attributes. For example, some frameworks show a warning if the hrefLang is written in lowercase: hreflang. Google does not care about this:
You mean the capitalization? IMO capitalization in HTML attribute names is ignored (eg in XHTML they're often completely in caps). Personally, I'd try to be consistent, but unless you're using tools of your own that are super picky, it probably doesn't matter.
— ? John ? (@JohnMu) October 29, 2020
How to check your website
Check your website with the website audit tool in SEOprofiler. The website audit tool shows errors that can have a negative impact on your rankings on Google and other search engines: