HTML and CSS

CSS changes the style of HTML tags by targeting specific tags, classes or ids.

if we want all p tags to have red color.

<!DOCTYPE HTML>
<html lang="en">
  <head>
    <style type="text/css">
      p {
        color: red;
      }
    </style>
    <title>A title</title>
  </head>
  <body>
    <p>Hello World</p>
  </body>
</html>

Hello World