SlideShare a Scribd company logo
1 of 3
Download to read offline
CSS
Definition:
CSS, or Cascading Style Sheets, is a style sheet language used to describe the presentation and
formatting of web documents written in HTML and XML. It allows web developers to control
the layout, design, and appearance of web pages, making them visually appealing and user-
friendly.
Example:
/* This is a CSS comment */
p {
color: blue;
font-family: Arial, sans-serif;
}
Features:
1. Selectors: CSS allows you to select HTML elements and apply styles to them based on
their attributes, class, ID, or position in the document.
2. Properties: CSS defines various properties (e.g., color, font-size, margin) that can be
applied to elements to control their appearance.
3. Values: Properties are assigned values (e.g., color values, measurement units) to
determine how the element should be styled.
4. Cascading: CSS uses a system of cascading styles, meaning styles can be inherited,
overridden, or combined to provide flexibility and control.
5. Box Model: CSS lets you control the size and spacing of elements within a document
by defining properties like margin, padding, and border.
6. Positioning: You can control the position of elements on a page using properties like
position, float, and display.
7. Flexibility: CSS is highly adaptable and can be used for simple styling or complex
layouts.
8. Media Queries: Media queries allow responsive design by adapting styles based on the
characteristics of the user's device, such as screen size or orientation.
Media Query:
A media query in CSS is a feature that allows you to apply different styles or rules based on
the characteristics of the user's device or viewport. For example, you can use media queries to
make your website responsive, adjusting the layout and design for different screen sizes.
@media screen and (max-width: 600px) {
/* Styles for screens with a maximum width of 600px */
body {
font-size: 16px;
}
}
Advantages:
1. Separation of Concerns: CSS separates the content (HTML) from its presentation
(styling), making it easier to manage and update web pages.
2. Consistency: CSS promotes consistent design throughout a website, ensuring that fonts,
colors, and layout elements are uniform.
3. Flexibility: You can easily adapt the design to different screen sizes and devices,
improving the user experience.
4. Accessibility: CSS can be used to enhance web accessibility by providing clear and
organized styling that benefits users with disabilities.
5. Fast Loading: By externalizing styles into CSS files, you can reduce page load times.
6. Maintainability: Changes in design can be made globally by editing a single CSS file,
saving development time and effort.
History:
1. CSS was proposed in the mid-1990s as a solution to the limited styling options available
with HTML.
2. CSS1 was introduced in 1996, providing basic styling capabilities.
3. CSS2 followed in 1998, adding more complex layouts and positioning features.
4. CSS3, a set of separate modules, introduced features like animations, transitions, and
advanced styling options. CSS3 is the latest.

More Related Content

Similar to CSS Overview

Web Technology
Web TechnologyWeb Technology
Web Technology
Kirti H Mandal
 
Cascading Style Sheets(CSS).pptx by kj frm changa
Cascading Style Sheets(CSS).pptx by kj frm changaCascading Style Sheets(CSS).pptx by kj frm changa
Cascading Style Sheets(CSS).pptx by kj frm changa
Krupal8
 
Cascading Style Sheets for web browser.pptx
Cascading Style Sheets for web browser.pptxCascading Style Sheets for web browser.pptx
Cascading Style Sheets for web browser.pptx
alvindalejoyosa1
 

Similar to CSS Overview (20)

Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)Cascading Style Sheets (CSS)
Cascading Style Sheets (CSS)
 
Css introduction
Css   introductionCss   introduction
Css introduction
 
CSS
CSSCSS
CSS
 
CASCADING STYLE SHEETS (CSS).pptx
CASCADING STYLE SHEETS (CSS).pptxCASCADING STYLE SHEETS (CSS).pptx
CASCADING STYLE SHEETS (CSS).pptx
 
Web Technology
Web TechnologyWeb Technology
Web Technology
 
Cascading Style Sheets(CSS).pptx by kj frm changa
Cascading Style Sheets(CSS).pptx by kj frm changaCascading Style Sheets(CSS).pptx by kj frm changa
Cascading Style Sheets(CSS).pptx by kj frm changa
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS Implementation
 
Webpage style with CSS
Webpage style with CSSWebpage style with CSS
Webpage style with CSS
 
Cascading Style Sheets (CSS) - An introduction
Cascading Style Sheets (CSS) - An introductionCascading Style Sheets (CSS) - An introduction
Cascading Style Sheets (CSS) - An introduction
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Css training tutorial css3 & css4 essentials
Css training tutorial css3 & css4 essentialsCss training tutorial css3 & css4 essentials
Css training tutorial css3 & css4 essentials
 
Css
CssCss
Css
 
Cascading Style Sheets for web browser.pptx
Cascading Style Sheets for web browser.pptxCascading Style Sheets for web browser.pptx
Cascading Style Sheets for web browser.pptx
 
Cashcading stylesheets
Cashcading stylesheetsCashcading stylesheets
Cashcading stylesheets
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
DW_lesson2.ppt
DW_lesson2.pptDW_lesson2.ppt
DW_lesson2.ppt
 
Css3
Css3Css3
Css3
 

More from To Sum It Up

More from To Sum It Up (20)

Prompt Engineering | Beginner's Guide - For You
Prompt Engineering | Beginner's Guide - For YouPrompt Engineering | Beginner's Guide - For You
Prompt Engineering | Beginner's Guide - For You
 
Natural Language Processing (NLP) | Basics
Natural Language Processing (NLP) | BasicsNatural Language Processing (NLP) | Basics
Natural Language Processing (NLP) | Basics
 
It's Machine Learning Basics -- For You!
It's Machine Learning Basics -- For You!It's Machine Learning Basics -- For You!
It's Machine Learning Basics -- For You!
 
Polymorphism in Python
Polymorphism in PythonPolymorphism in Python
Polymorphism in Python
 
DSA Question Bank
DSA Question BankDSA Question Bank
DSA Question Bank
 
Web API - Overview
Web API - OverviewWeb API - Overview
Web API - Overview
 
HTML Overview
HTML OverviewHTML Overview
HTML Overview
 
EM Algorithm
EM AlgorithmEM Algorithm
EM Algorithm
 
User story mapping
User story mappingUser story mapping
User story mapping
 
User stories
User storiesUser stories
User stories
 
Problem solving using computers - Unit 1 - Study material
Problem solving using computers - Unit 1 - Study materialProblem solving using computers - Unit 1 - Study material
Problem solving using computers - Unit 1 - Study material
 
Problem solving using computers - Chapter 1
Problem solving using computers - Chapter 1 Problem solving using computers - Chapter 1
Problem solving using computers - Chapter 1
 
Quality Circle | Case Study on Self Esteem | Team Opus Geeks.pdf
Quality Circle | Case Study on Self Esteem | Team Opus Geeks.pdfQuality Circle | Case Study on Self Esteem | Team Opus Geeks.pdf
Quality Circle | Case Study on Self Esteem | Team Opus Geeks.pdf
 
Multimedia Content and Content Acquisition
Multimedia Content and Content AcquisitionMultimedia Content and Content Acquisition
Multimedia Content and Content Acquisition
 
PHP Arrays_Introduction
PHP Arrays_IntroductionPHP Arrays_Introduction
PHP Arrays_Introduction
 
System Calls - Introduction
System Calls - IntroductionSystem Calls - Introduction
System Calls - Introduction
 
Leadership
LeadershipLeadership
Leadership
 
Programming The Basic Computer
Programming The Basic ComputerProgramming The Basic Computer
Programming The Basic Computer
 
SQL | DML
SQL | DMLSQL | DML
SQL | DML
 
Ozone in wastewater treatment
Ozone in wastewater treatmentOzone in wastewater treatment
Ozone in wastewater treatment
 

Recently uploaded

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
 

Recently uploaded (20)

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
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
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)
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
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
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 

CSS Overview

  • 1. CSS Definition: CSS, or Cascading Style Sheets, is a style sheet language used to describe the presentation and formatting of web documents written in HTML and XML. It allows web developers to control the layout, design, and appearance of web pages, making them visually appealing and user- friendly. Example: /* This is a CSS comment */ p { color: blue; font-family: Arial, sans-serif; } Features: 1. Selectors: CSS allows you to select HTML elements and apply styles to them based on their attributes, class, ID, or position in the document. 2. Properties: CSS defines various properties (e.g., color, font-size, margin) that can be applied to elements to control their appearance. 3. Values: Properties are assigned values (e.g., color values, measurement units) to determine how the element should be styled. 4. Cascading: CSS uses a system of cascading styles, meaning styles can be inherited, overridden, or combined to provide flexibility and control. 5. Box Model: CSS lets you control the size and spacing of elements within a document by defining properties like margin, padding, and border. 6. Positioning: You can control the position of elements on a page using properties like position, float, and display.
  • 2. 7. Flexibility: CSS is highly adaptable and can be used for simple styling or complex layouts. 8. Media Queries: Media queries allow responsive design by adapting styles based on the characteristics of the user's device, such as screen size or orientation. Media Query: A media query in CSS is a feature that allows you to apply different styles or rules based on the characteristics of the user's device or viewport. For example, you can use media queries to make your website responsive, adjusting the layout and design for different screen sizes. @media screen and (max-width: 600px) { /* Styles for screens with a maximum width of 600px */ body { font-size: 16px; } } Advantages: 1. Separation of Concerns: CSS separates the content (HTML) from its presentation (styling), making it easier to manage and update web pages. 2. Consistency: CSS promotes consistent design throughout a website, ensuring that fonts, colors, and layout elements are uniform. 3. Flexibility: You can easily adapt the design to different screen sizes and devices, improving the user experience. 4. Accessibility: CSS can be used to enhance web accessibility by providing clear and organized styling that benefits users with disabilities. 5. Fast Loading: By externalizing styles into CSS files, you can reduce page load times. 6. Maintainability: Changes in design can be made globally by editing a single CSS file, saving development time and effort.
  • 3. History: 1. CSS was proposed in the mid-1990s as a solution to the limited styling options available with HTML. 2. CSS1 was introduced in 1996, providing basic styling capabilities. 3. CSS2 followed in 1998, adding more complex layouts and positioning features. 4. CSS3, a set of separate modules, introduced features like animations, transitions, and advanced styling options. CSS3 is the latest.