Skip to main content

Cascading Style Sheets

Cascading Style Sheets, what is Cascading Style Sheets, Cascading Style Sheets in HTML ,why we use Cascading Style Sheets,types of Cascading Style Sheets, Define CSS , Cascading Style Sheets PDF notes Download, Cascading Style Sheets Notes Download, Cascading Style Sheets with example 

 What is Cascading Style Sheets ? what is CSS ? which is a  current version of Cascading Style Sheets you are using?  define different types of Cascading Style Sheets?

 CSS long form is Cascading Style Sheets, 

Cascading Style Sheets (CSS) mainly used for   styling    purpose or to beautify HTML Pages.

There are different version and type of CSS are thir

Most of the people were using Cascading Style Sheets2 Or CSS2 version but right now in 2015 2016 new version of CSS is CSS3 which gives us lots of new features to beautify HTML Pages.

As per the CSS used in HTML Pages CSS has Three Types 

1. inline CSS or Inline Cascading Style Sheets

   Inline is define using tag level CSS. it is limited to that tag only to which it is define but is is very powerful and having high Priority .lets take example how to define Inline Cascading Style to a paragraph.

 < P style=" text-align:justify; Color: red">

   hello Dear with you very happy and Healthy  Life 

 here in above example i have defined tag where inline style is define using style tag  where using double quote i am going to define look of my Paragraph .

Problem with inline css is if you want to define same style to multiple paragraph you have to write style for each and every paragraph it will increase your work which is not feasible and next time if you want to change something it will be headache for you.

 to overcome from above problem new style type was defined as 

 

2. Internal CSS or Internal Cascading Style Sheets

  Internal CSS Define PAGE Level CSS.  It is define in head section of your page using style (
        
           
                    < p>

                        hello Dear with you very happy and Healthy  Life 

                      

           
 
 



 If you Define Number of tag every paragraph on single page will take same  style. 

you can also define selector using Class Name or  Using id  as show following Example Define css using Class Name.

in Following example i have used class name main_txt  which is define using DOT(.) before name of the class

to apply define class to particular tag i have use          < p class="main_txt"> Class attribute of that tag as shown in example.



       
           < style>
                 .main_txt{ text-align:justify;
                   Color: red;}
            
        
           
                    < p class="main_txt">

                        hello Dear with you very happy and Healthy  Life 

                      

           
 
 

 

you can also define selector using ID   as show following Example Define css using Class Name.


in Following example i have used class name main_txt  which is define using Hash (#) before name of the class

to apply define class to particular tag i have use  < p id="main_txt"> id attribute of that tag as shown in example.



       
           < style>
               #main_txt{ text-align:justify;
                   Color: red;}
            
        
           
                    < p  id="main_txt">

                        hello Dear with you very happy and Healthy  Life 

                      

           
 
 


 Problem with the internal CSS is again same if your Project contain 10 pages then you have to use 10 internal css for each page separately that is again not maintainable if there are any change then headache. 

So to Overcome form this Problem we use External CSS 

3. External CSS or External Cascading Style Sheets

External  CSS Define Project Level CSS. Define One CSS Page and use Multiple times in number of pages in your as shown in following example .

 1. Style.css file  (save saparte file using .css extension)

               #main_txt{ text-align:justify;
                   Color: red;}
      
 
 2. index. html page (add link tag in head section)
       
        
        
           
                    < p  id="main_txt">

                        hello Dear with you very happy and Healthy  Life 

                      

           
 
 


 Priority OF Cascading Style Sheets High to Low 

Inline Style Sheet > Internal Style sheet > External Style sheet

 What is HTML? Define HTML

  HTML long form is  Hypertext Markup Language. 
  it is known as language of Browser.
 Mainly HTML is used to Define Structure of webpages or    Called as Structural Layer  .
 CSS  used to Beautify HTML webpage or Also called Presentation Layer  .

CSS2 Was Old Version Currently 2015-2016 CSS3 is Popular one 

Cascading Style Sheets, what is Cascading Style Sheets, Cascading Style Sheets in HTML ,why we use Cascading Style Sheets,types of Cascading Style Sheets, Define CSS , Cascading Style Sheets PDF notes Download, Cascading Style Sheets Notes Download, Cascading Style Sheets with example 


Popular posts from this blog

Design Marathi website Using HTML CSS

          Design Marathi website Using HTML CSS,मराठी वेबसाईट designing HTML ,step by step Marathi website, how to display Marathi content in your website, Design Marathi website step by step , Marathi website using HTML and CSS, How To Design website using different Languages  Design Marathi website Using HTML CSS, Design Marathi website Using PHP, Design Marathi website Using JSP, Design Marathi website Using ASP, Design Marathi website Using C# Dot Net, Design Marathi website Using Vb Dot Net, मराठी वेबसाईट मराठी वेबसाईट बनवन अगदी सोप आहे मी या ब्लॉग मध्ये दिलेल्या स्टेप्स वापरून तुम्ही काही क्षणात मराठी वेब पेज तयार करू शकता  Design Marathi website Using HTML CSS,मराठी वेबसाईट designing HTML ,step by step Marathi website, how to display Marathi content in your website, Design Marathi website step by step , Marathi website using HTML and CSS, How To Design website using different Languages    Design Marathi website U

what is Blogger

what is Blogger, what is Blogger short info, Blogger hindi information,  Blogger.com एक फ्री Blog Publishing Platform है. जिसकी सहायता से Free Blog बनाकर Texts, Images, Videos आदि आसानी से शेयर की जा सकती है. और दुनिया को अपने लेखन कौशल से अवगत कराया जा सकता है. Blogger की गिनती Content Management Systems में होती है. क्योंकि यह Content को Yearly, Monthly, Weekly, Daily, Catigarically, Labels आदि के द्वारा Manage करता है. और ये सभी Entry पाठकों के लिए उपलब्ध रहती है. Google Blogger Kya Hai in Hindi Blogger पर जो ब्लॉग बनाया जाता है. वह blogspot.com का Sub-Domain होता है. जो Google Server पर Hosted रहता है. Blogger Users गूगल सर्वर को Access नही कर पाते है. लेकिन गूगल अकाउंट से उन्हे Blogger Dashboard पर अनुमति मिल जाती है. इसलिए वे अपना Blog Manage आसानी से कर सकते. Blogspot.com के अलावा Users को Country Specifit Domain Name भी उपलब्ध करवाया जाता है. मिसाल के तौर पर एक Indian Blogger Users अगर अपना ब्लॉग बनाता है तो वह blogspot.com के स्थान पर blogspot.in का चुनाव कर

how to add a youtube video to your website html

embed youtube video in html without iframe,html embed youtube video,how to insert a video in html from computer,iframe video autoplay in html,embed video html,youtube embed code generator,youtube refused to connect html,how to insert mp4 video in html, Use following steps 1. Create basic html page 2. Login to your Google account 3. Visit  www.youtube.com 4. Search video you want to add in your website 5. Select video  6. Click on share button at bottom  you can see share option   7. Click on embed as shown  8. Copy code and paste in html page save and run html page  embed youtube video in html without iframe,html embed youtube video,how to insert a video in html from computer,iframe video autoplay in html,embed video html,youtube embed code generator,youtube refused to connect html,how to insert mp4 video in html,