9.8 C
New York
Saturday, November 23, 2024

Google Says Hold Essential Content material Out Of Earlier than Or After CSS Pseudo-Components


Female Coder Laptop Google Logo

Google posted on Twitter “we suggest not including significant content material or symbols utilizing ::earlier than or ::after CSS pseudo-elements.” Google stated such content material “may not be used for indexing your pages.” Notice, this isn’t a change to how Google Search works, it’s simply now talked about within the documentation.

Google added that it “clarified within the developer’s information that Google Search at present could not index content material inside CSS content material properties as that is not a part of the DOM.”

Google added that you could nonetheless use the factor for ornamental functions.

A CSS pseudo-element is a key phrase added to a selector that allows you to model a particular a part of the chosen factor(s). A CSS pseudo-element is used to model specified elements of a component. It may be used to model the primary letter, or line, of a component and insert content material earlier than, or after, the content material of a component. You possibly can see examples of how that is achieved on W3 Faculties.

Google stated they particularly up to date their assist documentation to say this.

Right here is that tweet:

Notice, this isn’t a brand new change however an replace to the documentation:

Notice: I’m posting tales at present, Sunday, as a result of tomorrow is Yom Kippur and I’m not posting something on Yom Kippur.

Discussion board dialogue at X.



Related Articles

Latest Articles