Google Says Links In Commented Out HTML Do Not Impact Ranking

Oct 21, 2020 - 8:37 am 0 — by

Google Commented Out Code

Martin Splitt of Google, in a rare case about talking specifically about Google rankings, said that he has confirmed that while Google can discover links within commented out HTML code, those links do not get used for ranking purposes in Google.

Here what Martin said on Twitter "so, after a bit of digging and pending a bit of testing (I'm fairly convinced on the results, but better safe than sorry) I think we're discovering (!) links inside comments but don't pass 'em on to ranking. So it's working-as-intended there."

This comes after Jamie Alberico asked about it:

Some folks questioned his original response so he promised to look into it:

And then he said, nope, links in commented out HTML does not pass any ranking weight.

To be clear, HTML comments are not like blog comments, it is when coders mark up their code to add comments about why they coded something. It is like a way to keep notes and reminders about why code was done a specific way. HTML comments are not displayed in the browser, but they can help document your HTML source code.

They can show up in the HTML as but they do not show on the web site.

Forum discussion at Twitter.

Update: One more form example:

 

Popular Categories

The Pulse of the search community

Google Search Volatility

More Details

Search Video Recaps

 
Video Details More Videos Subscribe to Videos

Most Recent Articles

Google Search Engine Optimization

Google Adopts New AI Training Control

Oct 30, 2026 - 12:50 pm
Bing SEO

Microsoft Bing New AI New Controls With AI Training From AI Search Grounding

Oct 30, 2026 - 12:15 pm
ChatGPT Ads

ChatGPT Gets Wider Ads, Multi-Image Ads Expands, Expansion & More

Oct 30, 2026 - 11:17 am
Search Forum Recap

Daily Search Forum Recap: October 30, 2026

Oct 30, 2026 - 10:00 am
Search Video Recaps

Search News Buzz Video Recap: Google Volatility X2, Spam Updates, AI Overviews Everywhere, Blending Ads & Organic, Google & Microsoft Earnings

Oct 30, 2026 - 8:01 am
Google Search Engine Optimization

Google AI Overviews & AI Mode 0.9% Click-Through Rate, Opt Out Study Says

Oct 30, 2026 - 7:51 am
Previous Story: Google Search Augmented Reality For Car Manufacturers