What is package.json in Node.js? Features, Uses and Examples

Image
  Introduction to package.json  in Node.js When developers start working with Node.js , they often create projects using different libraries, frameworks, and tools. Managing all these project requirements manually can become difficult. This is where the package.json file becomes useful. The package.json file is an important part of almost every Node.js project. It stores essential information about an application, including its name, version, description, dependencies , development tools, and scripts. 2. What is package.json The package.json file is a JSON (JavaScript Object Notation) file used in Node.js projects to store project information and configuration. It works as a project information file that describes the application and tells npm which packages, scripts, and other settings are required. Every Node.js project can have its own package.json file. It is generally located in the root directory of the project. For example , consider a project named m...

What is CSS Class Selector? Learn with Real Examples

 What is CSS Class Selector? Learn with Real Examples

CSS Class Selector With Practical Examples

This Blog You Will Learn

 ஃ  What is CSS Class Selector  

ஃ  Syntax

ஃ structure diagram examples

 ஃ Examples

ஃ  Output

What is CSS Class Selector 

CSS Class  Selector is use to style one or more element HTML elements share the same class name

CSS Class Selector targets  element with specific class attribute.

CSS Class Selector denoted (Dot . ) class name.

Syntax

.class-name 

property:value;

} 

ஃ structure diagram examples

What is CSS Class Selector? Learn with Real Examples

CSS Class Selector With Practical Examples
 Examples


<!DOCTYPE html>
<html>
    <head>
        <title> CSS  class  Selector </title>
   <style>
          .demo{

             color:cadetblue;
          }                  
          .intro{
            border: 5px inset gold;
            color:dodgerblue;
             text-align:center;  
             }                                                                                                  
        </style>
            </head>
            <body>
                <div class="demo">
           <h1> CSS Class Selector </h1>
     <P> learn programming language css  </P>
           </div>

         
           <p class="intro">
https://webdesigningtheory.blogspot.com/</p>
         
            </body>
</html>

CSS Class Selector Step-by-Step 
 Explain Program 

Step  1] 

  <!DOCTYPE html>

  • This declare the document type.
  • browser that the document is written in html

Step 2]

  <html>.... .

  • html is the root element of the html page.
  •  Every thing inside it is part of the webpage.

CSS Box property 

Step 3]

text tag  text appears on the browser tab.

<head>
        <title> CSS  class  Selector </title>

Step 4]

 <style>
          .demo{

             color:cadetblue;
          }                  
          .intro{
            border: 5px inset gold;
            color:dodgerblue;
             text-align:center;  
             }                                                                                                  
        </style>

.demo  class Selector.

  • change the text color any element with class demo to cadetblue.

.intro class selector.

  •  5px gold inset border
  •  Text color dodger blue
  • Ccentered text

Step  5]  

closing the Tag

  </style>

            </head>

  Step  6] 

Body Section 

<body>
                <div class="demo">
           <h1> CSS Class Selector </h1>
       <P> learn programming language css  </P>
           </div>

   <p class="intro">
https://webdesigningtheory.blogspot.com/</p>
         

              <div> element with class demo

  •   all text inside color inherits 
  •  heading and paragraph inside the demo div
  • heading and paragraph  appear in color cadet blue

 </div> tag Close

Css inline block  

 Paragraph using class intro

  •  blue text 
  • center alignment
  • gold inset border 

Step  7] 

closing the Tag

  </body>   </html>

CSS Class Selector With Practical Examples

Output

CSS Class Selector With Practical Examples




Related Post :-



Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

CSS Outline Offset Property with Practical Examples