SlideShare a Scribd company logo
4
Most read
6
Most read
8
Most read
css.ppt
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
BhasulaBhas.A.K
bhasula994@gmail.com
www.facebook.com/username
twitter.com/username
in.linkedin.com/in/profilename
12345656
topic
Cascading Style Sheet(CSS)
 A cascading style sheet(CSS) is a web page derived from
multiple sources with a defined order of precedence where
the definition of any style element conflict.
 CSS saves a lot of work
 CSS define how HTML elements are to be displayed
Syntax Of CSS
A CSS rule set consist of a selector and a declaration
block.
Selector Declaration Declaration
Property Value Property Value
• The selector points to the HTML element you want to style
• The Declaration block contains one or more declarations separated by semicolons.
• Each declaration includes a property name and a value, separated by a colon.
h1 {color: red; font-size:15px;}
Types Of CSS
There are 3 types of CSS styles declaration are as follows:
1. Internal(Embedded) Styles
2. Inline Styles
3. External Styles
Internal (Embedded)Styles
Internal styles are placed inside the head section of a particular web
page via the style tag. Internal styles are also called “Embedded” styles .
Inline Styles
Inline styles are placed directly inside an HTML element in the code.
External Styles
An external style sheet is a separate page which is then linked to the web
page.
CSS Selectors
CSS selectors allow you to select and manipulate HTML
elements.
CSS selectors are used to “find”(or select) HTML elements based
on their id,class,type,attribute,and more.
 The CSS selectors are follows:
1. Element Selector
2. ID Selector
3. Class Selector
4. Grouping Selector
• The Element Selector
The element selector selects elements based on the
element name.
Example
P{
text-align: center;
Color: red;
}
When we use above example, we get all<p> elements will be
center-aligned with a red text color.
• The id Selector
The id selector uses the id attribute of an HTML element to select a
specific element.
An id should be unique within a page, so the id selector is used if
you want to select a single,unique element.
To select an element with a specific id, write a hash(#)character,
followed by the id of the element.
The style rule below will be applied to the HTML element with
id=“paragraph”
Example
#paragraph{
text-align: center;
color: red;
}
• Class Selector
The class selector selects elements with a specific class
attribute.
To select elements with a specific class ,write a
period(.)character , followed by the name of the class
In the example below, all HTML elements with
class=”center” will be center-aligned
Example
.center{
text-aligned: center;
Color: red;
}
• Grouping Selectors
You can group the selectors , to minimize the code.
To group selectors , separate each selector with comma.
Example
h1,h2,h3,p{
text-align: center;
Color: red;
}
In the above example we have grouped some
selectors.
Example Program Of CSS
<html>
<head>
<style>
#tb
{
Border-radius:25px;
Width:200px;
Padding:20px;
}
</style>
</head>
<body>
<table border=1 id=“tb” cellpadding=“10px”>
<tr>
<th colspan=“3”><u>Student
Details</u></th>
</tr>
<tr>
<td>Name</td>
<td>Address</td>
<td>Phone Number</td>
</tr>
<tr>
<td>Athira</td>
<td>Keeripoyil(h)<br/>Mukkam</td>
<td>9946757413</td>
</tr>
<tr><td>Aswathi</td.
<td>Periyapurath(h)<br/.Kozhikode</td>
<td>9656368644</td></tr>
</body>
</html>
OUTPUT
Thankyou…
Want to learn more about programming or Looking to become a good programmer?
Are you wasting time on searching so many contents online?
Do you want to learn things quickly?
Tired of spending huge amount of money to become a Software professional?
Do an online course
@ baabtra.com
We put industry standards to practice. Our structured, activity based courses are so designed
to make a quick, good software professional out of anybody who holds a passion for coding.
Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com

More Related Content

What's hot (20)

PPTX
Css selectors
Parth Trivedi
 
PPTX
Cascading style sheets (CSS)
Harshita Yadav
 
ODP
Introduction of Html/css/js
Knoldus Inc.
 
PPTX
Css types internal, external and inline (1)
Webtech Learning
 
PDF
Html / CSS Presentation
Shawn Calvert
 
PPT
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
PPT
CSS Basics
WordPress Memphis
 
PPT
Javascript arrays
Hassan Dar
 
PPT
Web Development using HTML & CSS
Shashank Skills Academy
 
PPT
Css Ppt
Hema Prasanth
 
PPT
Cascading Style Sheets (CSS) help
casestudyhelp
 
PDF
Introduction to HTML5
Gil Fink
 
PPTX
Html form tag
shreyachougule
 
PDF
javascript objects
Vijay Kalyan
 
PPTX
Html5 and-css3-overview
Jacob Nelson
 
PPTX
HTML frames and HTML forms
Nadine Cruz
 
PPTX
JSON: The Basics
Jeff Fox
 
PPT
javaScript.ppt
sentayehu
 
PPT
cascading style sheet ppt
abhilashagupta
 
PPTX
Introduction to php
Taha Malampatti
 
Css selectors
Parth Trivedi
 
Cascading style sheets (CSS)
Harshita Yadav
 
Introduction of Html/css/js
Knoldus Inc.
 
Css types internal, external and inline (1)
Webtech Learning
 
Html / CSS Presentation
Shawn Calvert
 
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
CSS Basics
WordPress Memphis
 
Javascript arrays
Hassan Dar
 
Web Development using HTML & CSS
Shashank Skills Academy
 
Css Ppt
Hema Prasanth
 
Cascading Style Sheets (CSS) help
casestudyhelp
 
Introduction to HTML5
Gil Fink
 
Html form tag
shreyachougule
 
javascript objects
Vijay Kalyan
 
Html5 and-css3-overview
Jacob Nelson
 
HTML frames and HTML forms
Nadine Cruz
 
JSON: The Basics
Jeff Fox
 
javaScript.ppt
sentayehu
 
cascading style sheet ppt
abhilashagupta
 
Introduction to php
Taha Malampatti
 

Viewers also liked (15)

PPT
CSS ppt
Sanmuga Nathan
 
PDF
V Rss Mobile Ppt English
SpeechWorkers Sdn. Bhd.
 
PDF
Bring your own device
C/D/H Technology Consultants
 
PPTX
Dropbox presentation
Kenton Larsen
 
PPTX
Introduction to xml
Gtu Booker
 
PPSX
Introduction to Html5
www.netgains.org
 
PPS
Drop Box Ppt
guestd4ab1c7
 
PPT
Introduction to XML
Jussi Pohjolainen
 
PPT
Js ppt
Rakhi Thota
 
PPT
Html Ppt
vijayanit
 
PPT
Introduction to HTML
MayaLisa
 
PPTX
Elearning.ppt
Ashwin Kumar
 
PPTX
Xml ppt
seemadav1
 
PPTX
Introduction of Cloud computing
Rkrishna Mishra
 
V Rss Mobile Ppt English
SpeechWorkers Sdn. Bhd.
 
Bring your own device
C/D/H Technology Consultants
 
Dropbox presentation
Kenton Larsen
 
Introduction to xml
Gtu Booker
 
Introduction to Html5
www.netgains.org
 
Drop Box Ppt
guestd4ab1c7
 
Introduction to XML
Jussi Pohjolainen
 
Js ppt
Rakhi Thota
 
Html Ppt
vijayanit
 
Introduction to HTML
MayaLisa
 
Elearning.ppt
Ashwin Kumar
 
Xml ppt
seemadav1
 
Introduction of Cloud computing
Rkrishna Mishra
 
Ad

Similar to css.ppt (20)

PPTX
Css.html
Anaghabalakrishnan
 
PPTX
Cascading Style Sheets (CSS) LEVELS.pptx
DishaGudigar
 
PPTX
introduction to CSS
Manish jariyal
 
PPTX
Ia css
osman do
 
PPTX
chitra
sweet chitra
 
PPTX
CSS_Day_ONE (W3schools)
Rafi Haidari
 
PDF
CSS Foundations, pt 1
Shawn Calvert
 
PPTX
Web Development - Lecture 5
Syed Shahzaib Sohail
 
PPTX
Lecture 3CSS part 1.pptx
GmachImen
 
PPTX
Lecture 9 CSS part 1.pptxType Classification
ZahouAmel1
 
PPT
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
PDF
Unit 2.1
Abhishek Kesharwani
 
PDF
HTML CSS.pdf
ANKURAGARWAL252666
 
PPTX
Lec 1
maamir farooq
 
DOCX
Unit 2.1
Abhishek Kesharwani
 
PPT
CSS Overview
Doncho Minkov
 
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
PDF
Web 101
OneDesignCompany
 
PPTX
Introduction to Wed System And Technologies (1).pptx
AmeerHamza183012
 
PPTX
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Cascading Style Sheets (CSS) LEVELS.pptx
DishaGudigar
 
introduction to CSS
Manish jariyal
 
Ia css
osman do
 
chitra
sweet chitra
 
CSS_Day_ONE (W3schools)
Rafi Haidari
 
CSS Foundations, pt 1
Shawn Calvert
 
Web Development - Lecture 5
Syed Shahzaib Sohail
 
Lecture 3CSS part 1.pptx
GmachImen
 
Lecture 9 CSS part 1.pptxType Classification
ZahouAmel1
 
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
HTML CSS.pdf
ANKURAGARWAL252666
 
CSS Overview
Doncho Minkov
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
Introduction to Wed System And Technologies (1).pptx
AmeerHamza183012
 
Beginners css tutorial for web designers
Singsys Pte Ltd
 
Ad

Recently uploaded (20)

PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PDF
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
SSHS-2025-PKLP_Quarter-1-Dr.-Kerby-Alvarez.pdf
AishahSangcopan1
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
community health nursing question paper 2.pdf
Prince kumar
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 

css.ppt

  • 2. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 4. Cascading Style Sheet(CSS)  A cascading style sheet(CSS) is a web page derived from multiple sources with a defined order of precedence where the definition of any style element conflict.  CSS saves a lot of work  CSS define how HTML elements are to be displayed
  • 5. Syntax Of CSS A CSS rule set consist of a selector and a declaration block. Selector Declaration Declaration Property Value Property Value • The selector points to the HTML element you want to style • The Declaration block contains one or more declarations separated by semicolons. • Each declaration includes a property name and a value, separated by a colon. h1 {color: red; font-size:15px;}
  • 6. Types Of CSS There are 3 types of CSS styles declaration are as follows: 1. Internal(Embedded) Styles 2. Inline Styles 3. External Styles Internal (Embedded)Styles Internal styles are placed inside the head section of a particular web page via the style tag. Internal styles are also called “Embedded” styles . Inline Styles Inline styles are placed directly inside an HTML element in the code. External Styles An external style sheet is a separate page which is then linked to the web page.
  • 7. CSS Selectors CSS selectors allow you to select and manipulate HTML elements. CSS selectors are used to “find”(or select) HTML elements based on their id,class,type,attribute,and more.  The CSS selectors are follows: 1. Element Selector 2. ID Selector 3. Class Selector 4. Grouping Selector
  • 8. • The Element Selector The element selector selects elements based on the element name. Example P{ text-align: center; Color: red; } When we use above example, we get all<p> elements will be center-aligned with a red text color.
  • 9. • The id Selector The id selector uses the id attribute of an HTML element to select a specific element. An id should be unique within a page, so the id selector is used if you want to select a single,unique element. To select an element with a specific id, write a hash(#)character, followed by the id of the element. The style rule below will be applied to the HTML element with id=“paragraph” Example #paragraph{ text-align: center; color: red; }
  • 10. • Class Selector The class selector selects elements with a specific class attribute. To select elements with a specific class ,write a period(.)character , followed by the name of the class In the example below, all HTML elements with class=”center” will be center-aligned Example .center{ text-aligned: center; Color: red; }
  • 11. • Grouping Selectors You can group the selectors , to minimize the code. To group selectors , separate each selector with comma. Example h1,h2,h3,p{ text-align: center; Color: red; } In the above example we have grouped some selectors.
  • 12. Example Program Of CSS <html> <head> <style> #tb { Border-radius:25px; Width:200px; Padding:20px; } </style> </head> <body> <table border=1 id=“tb” cellpadding=“10px”> <tr> <th colspan=“3”><u>Student Details</u></th> </tr> <tr> <td>Name</td> <td>Address</td> <td>Phone Number</td> </tr> <tr> <td>Athira</td> <td>Keeripoyil(h)<br/>Mukkam</td> <td>9946757413</td> </tr> <tr><td>Aswathi</td. <td>Periyapurath(h)<br/.Kozhikode</td> <td>9656368644</td></tr> </body> </html>
  • 15. Want to learn more about programming or Looking to become a good programmer? Are you wasting time on searching so many contents online? Do you want to learn things quickly? Tired of spending huge amount of money to become a Software professional? Do an online course @ baabtra.com We put industry standards to practice. Our structured, activity based courses are so designed to make a quick, good software professional out of anybody who holds a passion for coding.
  • 16. Follow us @ twitter.com/baabtra Like us @ facebook.com/baabtra Subscribe to us @ youtube.com/baabtra Become a follower @ slideshare.net/BaabtraMentoringPartner Connect to us @ in.linkedin.com/in/baabtra Give a feedback @ massbaab.com/baabtra Thanks in advance www.baabtra.com | www.massbaab.com |www.baabte.com