<!DOCTYPE html>
<html lang="en">
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>CSS Selector's</title>

    /*Elements Selector's*/
      background-color: rgb(75, 56, 56);

    /*# Sign is for ID's*/
      background-color: rgb(31, 151, 57);
    /* . sign is for class */
      color: crimson;
    /*Multiple selectors 
    Multiple selectors is divided by "," coma*/
      border: 1px solid black;
      padding: 10px;
      margin-bottom: 10px;

    /* Nasted selector's */
    #welcome p{
      font-size: 20px;0
      background-color: blanchedalmond;

  <div id="welcome">
    <h2 class="primary-heading">Welcome to Our Course </h2>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Non odit sed impedit rem tempore labore quasi veritatis laborum quae quo?</p>

  <div id="about">
    <h2 class="about">About</h2>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloremque debitis esse expedita quo sit. Praesentium ea ipsum numquam voluptas exercitationem?</p>

downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter