css selectors w3schools

CSS
/* Answer to: "" */

/*
  In CSS, selectors are patterns used to select the
  element(s) you want to style.

  Use this CSS Selector Tester that demonstrates the different
  selectors:
  https://www.w3schools.com/cssref/trysel.asp
*/

p[title~=beautiful]:hover {
  color: orange;
}

<p title="beautifull">I can't be beautiful</p>
<p title="beautiful">Hover to make me beautiful</p>div + p {  
   color: green;  
} 

Source

Also in CSS: