Advertisement
ndburrus

Use CSS Selectors to Style Elements @krishna75688

Aug 13th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // Use CSS Selectors to Style Elements
  2. // @krishna75688
  3.  
  4. <style>
  5. h2 {
  6. color: red; // the color should be blue, not red.
  7. }
  8. </style>
  9.  
  10. <h2>CatPhotoApp</h2>
  11.  
  12. <h2 class="red-text" // delete this code line -the h2 style element within the style tag specifies the styling (color)
  13. // for the h2 element.
  14.  
  15. <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement