Linking the styles to document:

<link rel="stylesheet" href="style.css">

Different Way to Style CSS

  1. Internal

    <style>        
            p {
                color: blue;
            }
    </style>
    <p>Internal Styling</p>
    
  2. inline

    <p style="color: cadetblue;">This is Inline CSS</p>
    
  3. External

    index.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <p>External Styling</p>
    </body>
    </html>
    

    style.css

    p{
    	color: coral;
    }
    

Selectors:

selector{
	property: name;
	property: name;
	...............
}

id:

#title{
    color:rgb(189, 132, 25);
    font-size: 50px;
}
<h1 id="title">Hii</h1>

class:

.headings{
    color:rgb(199, 23, 61);
    font-size: 50px;
}