Google: Keep Important Content Out Of Before Or After CSS Pseudo-Elements

Sep 24, 2023 - 8:11 am 0 by

Female Coder Laptop Google Logo

Google posted on Twitter "we recommend not adding meaningful content or symbols using ::before or ::after CSS pseudo-elements." Google said such content "might not be used for indexing your pages." Note, this is not a change to how Google Search works, it is just now mentioned in the documentation.

Google added that it "clarified in the developer's guide that Google Search currently may not index content inside CSS content properties as that isn't part of the DOM."

Google added that you can still use the element for decorative purposes.

A CSS pseudo-element is a keyword added to a selector that lets you style a specific part of the selected element(s). A CSS pseudo-element is used to style specified parts of an element. It can be used to style the first letter, or line, of an element and insert content before, or after, the content of an element. You can see examples of how this is done on W3 Schools.

Google said they specifically updated their help documentation to mention this.

Here is that tweet:

Note, this is not a new change but an update to the documentation:

Note: I am posting stories today, Sunday, because tomorrow is Yom Kippur and I am not posting anything on Yom Kippur.

Forum discussion at X.

 

Popular Categories

The Pulse of the search community

Follow

Search Video Recaps

 
Google Search Ranking Volatility, Site Reputation Abuse Enforcement & Pichai On Search Quality - YouTube
Video Details More Videos Subscribe to Videos

Most Recent Articles

Search Forum Recap

Daily Search Forum Recap: May 10, 2024

May 10, 2024 - 4:00 pm
Search Video Recaps

Search News Buzz Video Recap: Google Search Ranking Volatility, Site Reputation Abuse Enforcement, Pichai On Search Quality, HCU Recovery & More

May 10, 2024 - 8:01 am
Bing Search

Mikhail Parakhin No Longer Working On Copilot At Microsoft

May 10, 2024 - 7:51 am
Google Search Engine Optimization

Google: Site Reputation Abuse Isn't About Linking

May 10, 2024 - 7:41 am
Google Maps

Google Local Panel With Owner Attribute

May 10, 2024 - 7:31 am
Google Ads

Google: Proximity Not A Relevancy Factor For Local Service Ads

May 10, 2024 - 7:21 am
Previous Story: Google Cloud Swag Mug