Difference between revisions of "Pseudo-element (CSS)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "In Cascading Style Sheets, '''pseudo-elements''' are style rules that affect certain parts of a web page. == Description == Pseudo-elements are added to the browser'...")
(No difference)

Revision as of 13:30, 8 March 2016

In Cascading Style Sheets, pseudo-elements are style rules that affect certain parts of a web page.

Description

Pseudo-elements are added to the browser's Document Object Model (DOM).

Pseudo-elements really are elements in the web page, because the DOM is the browser's internal representation of all the CSS rules it has processed.

Example

  • Style the first letter, or line, of an element
  • Insert content before, or after, the content of an element

Pseudo-class

Compare Pseudo-class (CSS).

See also