SlideShare uma empresa Scribd logo
1 de 12
INTRODUCTION
CSS are the powerful way to affect the presentation
 of a document or collection of a document.

 Mozilla and related browsers use CSS to affect the
  presentation of the browser Chrome itself.
Applying CSS

Uses
 We need to change the style of document.

 Easy to use.

 Time saving
Applying CSS example
 <html>
 <head>
 <title> Untitled Document </title>
 </head>
 <body>                               HTML
 <p> This is a paragraph </p>
 </body>
 </html>

 <style type = "text/CSS">
 p
 {
           color : black;
           font : Arial;
                                      CSS
 }
 </style>
Selectors
 A selector is most often an HTML element

       H1
            {
                color : Red;
                background : Yellow;
            }


            H1                   Selector
            color                Property
            Red                  Value
Grouping Selectors
           H2, p
              {
                   color : Gray;
                   background : Yellow;
              }

              H2, p                 Selector
              color                 Property
              Red                   Value
 Here we defined a rule where the style on the right
  (color : Gray;) applies to elements referenced by
  both selectors.
Universal selectors
 CSS2 introduced a new simple selectors called
  universal selector
   *{color: red;}


 Class selectors
   <p.class="warning"> This is a sample slide</p>
   <p> Hello world, <span class="warning"> good morning</p>
   *.warning {font-weight: bold;}
Pseudo – Class selectors
 Pseudo – Class selectors are most supported by
  browsers.

             a. visited {color: red;}
             a. link {color: blue;}
             a. hover {color: purple;}
             a. active {color: yellow;}
Advantages
 Save a lot of time

 Easy to use

 Page load faster

 Easy maintains
Disadvantages

 Browser compatibility.

 An extra download is required to import style
  information for each document.
Conclusion

 CSS is the most powerful way to make the
  website more attractive. CSS is easy to use
  and learn.
CSS

Mais conteúdo relacionado

Semelhante a CSS

css-presentation.ppt
css-presentation.pptcss-presentation.ppt
css-presentation.ppt
prathur68
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Larry King
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layout
CK Yang
 

Semelhante a CSS (20)

CSS CASCADE
CSS CASCADECSS CASCADE
CSS CASCADE
 
3. CSS
3. CSS3. CSS
3. CSS
 
css-presentation.ppt
css-presentation.pptcss-presentation.ppt
css-presentation.ppt
 
Day5
Day5Day5
Day5
 
Css
CssCss
Css
 
Make Css easy : easy tips for css
Make Css easy : easy tips for cssMake Css easy : easy tips for css
Make Css easy : easy tips for css
 
Lec 1
Lec 1Lec 1
Lec 1
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Unit 2.1
Unit 2.1Unit 2.1
Unit 2.1
 
Unit 2.1
Unit 2.1Unit 2.1
Unit 2.1
 
Csstutorial
CsstutorialCsstutorial
Csstutorial
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
 
Css - Tutorial
Css - TutorialCss - Tutorial
Css - Tutorial
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
 
CSS-STUDY MATERIAL.pdf
CSS-STUDY MATERIAL.pdfCSS-STUDY MATERIAL.pdf
CSS-STUDY MATERIAL.pdf
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layout
 
WEB PROGRAMMING
WEB PROGRAMMINGWEB PROGRAMMING
WEB PROGRAMMING
 
Cascading Style Sheets - CSS - Tutorial
Cascading Style Sheets - CSS  -  TutorialCascading Style Sheets - CSS  -  Tutorial
Cascading Style Sheets - CSS - Tutorial
 
CSS.pptx
CSS.pptxCSS.pptx
CSS.pptx
 
html
htmlhtml
html
 

Mais de Nitheesh Adithyan

Mais de Nitheesh Adithyan (7)

HTML
HTMLHTML
HTML
 
Google fiber
Google fiberGoogle fiber
Google fiber
 
Google fiber front page
Google fiber   front pageGoogle fiber   front page
Google fiber front page
 
Google fiber
Google fiberGoogle fiber
Google fiber
 
Ethical hacking front page
Ethical hacking   front pageEthical hacking   front page
Ethical hacking front page
 
Ethical hacking
Ethical hackingEthical hacking
Ethical hacking
 
Ethical Hacking
Ethical HackingEthical Hacking
Ethical Hacking
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

CSS

  • 1.
  • 2. INTRODUCTION CSS are the powerful way to affect the presentation of a document or collection of a document.  Mozilla and related browsers use CSS to affect the presentation of the browser Chrome itself.
  • 3. Applying CSS Uses  We need to change the style of document.  Easy to use.  Time saving
  • 4. Applying CSS example <html> <head> <title> Untitled Document </title> </head> <body> HTML <p> This is a paragraph </p> </body> </html> <style type = "text/CSS"> p { color : black; font : Arial; CSS } </style>
  • 5. Selectors  A selector is most often an HTML element H1 { color : Red; background : Yellow; } H1 Selector color Property Red Value
  • 6. Grouping Selectors H2, p { color : Gray; background : Yellow; } H2, p Selector color Property Red Value  Here we defined a rule where the style on the right (color : Gray;) applies to elements referenced by both selectors.
  • 7. Universal selectors  CSS2 introduced a new simple selectors called universal selector *{color: red;}  Class selectors <p.class="warning"> This is a sample slide</p> <p> Hello world, <span class="warning"> good morning</p> *.warning {font-weight: bold;}
  • 8. Pseudo – Class selectors  Pseudo – Class selectors are most supported by browsers. a. visited {color: red;} a. link {color: blue;} a. hover {color: purple;} a. active {color: yellow;}
  • 9. Advantages  Save a lot of time  Easy to use  Page load faster  Easy maintains
  • 10. Disadvantages  Browser compatibility.  An extra download is required to import style information for each document.
  • 11. Conclusion  CSS is the most powerful way to make the website more attractive. CSS is easy to use and learn.