SlideShare a Scribd company logo
1 of 48
Web Concepts
IT4101
1 •History
2 •Basic Website
3 •Factors affecting Website design
4 •Planning to build a Website
5 •From basic to “wow” Website
6 •Another way to build a Website
“WOW” Website
ADDING STYLE TO A BASIC WEBSITE
Cascading
Style Sheets
Typography Boxes
Page
Layouts
Graphics
and Colour
Navigation
Tables Forms
Responsive
Website
(1) Responsive, (2) Logo, Font, Colour, (3) Eye-catching Image, (4) Clear Navigation, (5) Contact Details,
(6) Persuasive Title, (7) Important Info (“above the fold”), (8) Videos/Audios/Animation, (9) Calls to Action, (10) Trust Indicator
https://blog.hubspot.com/marketing/anatomy-web-design
Cascading style sheets
CSS
let’s you control the display characteristics of your website
o CSS syntax
o How CSS will work with HTML (style rules)
o Techniques
o Inheritance
o Apply styles only to certain groups of elements or sections of text (<div> and <span>)
o Attributes (i.e. class, id)
Let’s Try CSS!
Benefits of CSS
CSS Style Rules
o Combining CSS Style Rules with HTML
 External Style Sheets
 Internal Style Sheets
 Inline Styles
Writing Clean CSS Code
o Using Comments
Style Rules
Style rules express the style characteristics for an HTML element
A set of style rules is called a style sheet
Style rules are composed of two parts: a selector and a declaration
1. The selector determines the element to which the rule is applied
2. The declaration details the exact property values
Style Rules
The declaration contains a property and a value
1. The property is a quality or characteristic
2. The precise specification of the property is contained in the value
CSS includes a wide variety of different properties, each with a specific number of values
CSS Tutorial
Combining CSS Style Rules with HTML
You combine CSS with HTML in three ways:
Inline style
Internal style sheet
External style sheet
Combining CSS Style Rules with HTML
External Style Sheets
o text documents that contain style rules
o let you specify rules for multiple web pages
o they have a .css extension
o on your HTML document, use the link element within the <head> section to specify the external style sheet
Internal Style Sheets
o contained within the <style> element within the <head> section
o only affect the document in which they reside
Inline Styles
o can define styles for a single element with the style attribute
o the style attribute can be used to override a style that was set at a higher level
Writing Clean CSS Code
Write CSS code that is consistent and easy to read
o Correct but hard-to-read:
o Better:
Use Comments in your code /* This is where you place your CSS comments*/
Inheritance
(to Write Simpler Style Rules)
Elements in an HTML document are structured in a hierarchy
o Parent elements contain child elements
You can style multiple document elements with just a few style rules
using inheritance
o CSS properties inherit from parent to child
The property descriptions list whether a property is inherited
Using Inheritance to Write Simpler Style Rules
o Specific style rules: o Using inheritance:
Examining Basic Selection Techniques
In this section, you will review style rule syntax and learn about the following basic selection
techniques:
1. Using type selectors
2. Grouping selectors
3. Combining declarations
4. Using descendant selectors
5. (Universal selector)
1. Using Type Selectors
The selector determines the element to which a style declaration is applied
Type selectors are the simplest form of selector
They select every element in the document that matches the style rule
In the following example, all h1 elements are red
2. Grouping Selectors
You can group selectors to which the same rules apply
o Specific style rules: o Grouping selectors:
3. Combining Declarations
You can state multiple property declarations for the same selector
o Specific style rules: o Combining declarations:
4. Using Descendant Selectors
You can select elements that are descendents of other elements
Examples:
o selecting only <em> elements that are contained within <p> elements
o selecting only <em> elements within <li> elements within <ul> elements – more specific
5. Using the Universal Selector
Universal selector (*) lets you select groups of elements
The universal selector is always overridden by more specific selectors.
Examples:
o setting default color for all elements
o selecting all children of the <div> element
Using class and id Selectors
In this section, you will learn to select elements of an HTML document using the following
methods:
1. The class selector
2. The id selector
3. The <div> and <span> elements
1. Using the class Selector
The class selector lets you write rules and give them a name
o You can apply that name to any element you choose
The class attribute lets you apply the style rule name to an element
The period (.) flag character indicates the selector is a class selector
2. Using the id Selector
The difference between id and class is that ID refers to only one instance of the id attribute value
within a document
The ID attribute is used to identify layout sections of the page
The ID attribute uses a pound sign (#) flag character
3. Using the <div> and <span> Elements
The <div> (division) and <span> (span of words) elements are designed to be used with CSS
They let you specify logical divisions within a document that have their own name and style
properties
They are used with the Class and ID attributes
<div>
block element used to create logical divisions on a web page
<span>
lets you specify in-line elements that have their own name and style properties
Other Selectors
o Attribute selector
o Pseudo-class and pseudo-element selectors
o (Advanced: Structural Pseudo-Class selector, UI Element States selector)
Attribute Selectors
Attribute selectors let you select an element based on whether the element contains an
attribute
Elements can be selected based on a specific value the attribute contains
Attribute selectors match against attributes and their values
Pseudo-Class and Pseudo-Element Selectors
Pseudo-classes
o select elements based on characteristics other than their element name
o for example, you can change the characteristics of hypertext links with pseudo-classes
Pseudo-elements
o let you change other aspects of a document that are not classified by standard elements such as the
first letter or line of a paragraph
Using the Link Pseudo-Classes
•The link pseudo-classes let you change the style characteristics for four different hypertext
link states
o Because of the specificity of the pseudo-class selectors, you should always place your link pseudo-class in the order listed
above (see example next page)
only apply to the <a> element with an href attribute
Using the :first-letter Pseudo-Element
•used to apply style rules to the first letter of any element:
to apply style rules to the first letter of any element
Want to apply to one paragraph rather than all?
Use CLASS Selector
Want to Drop the First Letter?
Use Float
Using the :first-line Pseudo-Element
affects the first line of text in an element
Using the :Before and :After Pseudo-Elements
let you insert created content - useful for repeated content
CONFLICTS
Multiple style sheets can apply to the same document
Only one rule can apply to an element
The CSS cascading mechanism determines which rules apply based on three variables:
◦ Specificity of the selector
◦ Order of the rule in the style sheet
◦ Use of the !important keyword
Specificity
(More Specific = Higher Precedence)
Inline style > Internal style sheet > External style sheet
ID selector > Class selector > Type selector
Order
(Latest = Higher Precedence)
!important
(Keyword)
Thank you!
IT4101 – WEB CONCEPTS

More Related Content

Similar to Web Concepts_Introduction to presentation.pptx

Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
Jafar Nesargi
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
Jafar Nesargi
 

Similar to Web Concepts_Introduction to presentation.pptx (20)

Css
CssCss
Css
 
CSS.pptx
CSS.pptxCSS.pptx
CSS.pptx
 
Chapter 11: Intro to CSS
Chapter 11: Intro to CSSChapter 11: Intro to CSS
Chapter 11: Intro to CSS
 
Lab#1 - Front End Development
Lab#1 - Front End DevelopmentLab#1 - Front End Development
Lab#1 - Front End Development
 
Csstutorial
CsstutorialCsstutorial
Csstutorial
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
 
Css - Tutorial
Css - TutorialCss - Tutorial
Css - Tutorial
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
 
Intro to css
Intro to cssIntro to css
Intro to css
 
CSS Basic Introduction
CSS Basic IntroductionCSS Basic Introduction
CSS Basic Introduction
 
CSS Basic Introduction, Rules, And Tips
CSS Basic Introduction, Rules, And TipsCSS Basic Introduction, Rules, And Tips
CSS Basic Introduction, Rules, And Tips
 
CLIENT SIDE PROGRAMMING
CLIENT SIDE PROGRAMMINGCLIENT SIDE PROGRAMMING
CLIENT SIDE PROGRAMMING
 
Css
CssCss
Css
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
chitra
chitrachitra
chitra
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 
Css basics
Css basicsCss basics
Css basics
 
CASCADING STYLE SHEETS (CSS).pptx
CASCADING STYLE SHEETS (CSS).pptxCASCADING STYLE SHEETS (CSS).pptx
CASCADING STYLE SHEETS (CSS).pptx
 
Lecture 9 CSS part 1.pptxType Classification
Lecture 9 CSS part 1.pptxType ClassificationLecture 9 CSS part 1.pptxType Classification
Lecture 9 CSS part 1.pptxType Classification
 

More from clement swarnappa

Web Concepts for professionals in information technology _Lec5g.pptx
Web Concepts for professionals in information technology _Lec5g.pptxWeb Concepts for professionals in information technology _Lec5g.pptx
Web Concepts for professionals in information technology _Lec5g.pptx
clement swarnappa
 
Web Concepts for professionals in information technology _Lec6.pptx
Web Concepts for professionals in information technology _Lec6.pptxWeb Concepts for professionals in information technology _Lec6.pptx
Web Concepts for professionals in information technology _Lec6.pptx
clement swarnappa
 
Tables in databases - Relationships and diagrams
Tables in  databases - Relationships and diagramsTables in  databases - Relationships and diagrams
Tables in databases - Relationships and diagrams
clement swarnappa
 

More from clement swarnappa (14)

Web Concepts - Introduction to Navigation.pdf
Web Concepts - Introduction to Navigation.pdfWeb Concepts - Introduction to Navigation.pdf
Web Concepts - Introduction to Navigation.pdf
 
Web Concepts_Introduction to Website Planning
Web Concepts_Introduction to Website PlanningWeb Concepts_Introduction to Website Planning
Web Concepts_Introduction to Website Planning
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 
Lecture slides on Fundamentals of Information Technology.pptx
Lecture slides on Fundamentals of Information Technology.pptxLecture slides on Fundamentals of Information Technology.pptx
Lecture slides on Fundamentals of Information Technology.pptx
 
introduction to problem solving using data visualisation technique.pptx
introduction to problem solving using data visualisation technique.pptxintroduction to problem solving using data visualisation technique.pptx
introduction to problem solving using data visualisation technique.pptx
 
9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx9781285852645_CH01 research and analysis of data.pptx
9781285852645_CH01 research and analysis of data.pptx
 
Web Concepts for professionals in information technology _Lec5g.pptx
Web Concepts for professionals in information technology _Lec5g.pptxWeb Concepts for professionals in information technology _Lec5g.pptx
Web Concepts for professionals in information technology _Lec5g.pptx
 
Web Concepts for professionals in information technology _Lec6.pptx
Web Concepts for professionals in information technology _Lec6.pptxWeb Concepts for professionals in information technology _Lec6.pptx
Web Concepts for professionals in information technology _Lec6.pptx
 
Lecture 1 _ Introduction to ID and HCI.pptx
Lecture 1 _ Introduction to ID and HCI.pptxLecture 1 _ Introduction to ID and HCI.pptx
Lecture 1 _ Introduction to ID and HCI.pptx
 
Tables_ATT502_activities and relationships in a database
Tables_ATT502_activities and relationships in a databaseTables_ATT502_activities and relationships in a database
Tables_ATT502_activities and relationships in a database
 
Tables in databases - Relationships and diagrams
Tables in  databases - Relationships and diagramsTables in  databases - Relationships and diagrams
Tables in databases - Relationships and diagrams
 
Hardware Lecture_PPT_WK01_Computer_Parts_Tools.pptx
Hardware Lecture_PPT_WK01_Computer_Parts_Tools.pptxHardware Lecture_PPT_WK01_Computer_Parts_Tools.pptx
Hardware Lecture_PPT_WK01_Computer_Parts_Tools.pptx
 
Windows 7-profile-screenshots
Windows 7-profile-screenshotsWindows 7-profile-screenshots
Windows 7-profile-screenshots
 
RIFT@NTLT2013
RIFT@NTLT2013RIFT@NTLT2013
RIFT@NTLT2013
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

Web Concepts_Introduction to presentation.pptx

  • 2. 1 •History 2 •Basic Website 3 •Factors affecting Website design 4 •Planning to build a Website 5 •From basic to “wow” Website 6 •Another way to build a Website
  • 3. “WOW” Website ADDING STYLE TO A BASIC WEBSITE
  • 4. Cascading Style Sheets Typography Boxes Page Layouts Graphics and Colour Navigation Tables Forms Responsive Website
  • 5. (1) Responsive, (2) Logo, Font, Colour, (3) Eye-catching Image, (4) Clear Navigation, (5) Contact Details, (6) Persuasive Title, (7) Important Info (“above the fold”), (8) Videos/Audios/Animation, (9) Calls to Action, (10) Trust Indicator https://blog.hubspot.com/marketing/anatomy-web-design
  • 7. CSS let’s you control the display characteristics of your website o CSS syntax o How CSS will work with HTML (style rules) o Techniques o Inheritance o Apply styles only to certain groups of elements or sections of text (<div> and <span>) o Attributes (i.e. class, id)
  • 9. Benefits of CSS CSS Style Rules o Combining CSS Style Rules with HTML  External Style Sheets  Internal Style Sheets  Inline Styles Writing Clean CSS Code o Using Comments
  • 10. Style Rules Style rules express the style characteristics for an HTML element A set of style rules is called a style sheet Style rules are composed of two parts: a selector and a declaration 1. The selector determines the element to which the rule is applied 2. The declaration details the exact property values
  • 11. Style Rules The declaration contains a property and a value 1. The property is a quality or characteristic 2. The precise specification of the property is contained in the value CSS includes a wide variety of different properties, each with a specific number of values CSS Tutorial
  • 12. Combining CSS Style Rules with HTML You combine CSS with HTML in three ways: Inline style Internal style sheet External style sheet
  • 13. Combining CSS Style Rules with HTML External Style Sheets o text documents that contain style rules o let you specify rules for multiple web pages o they have a .css extension o on your HTML document, use the link element within the <head> section to specify the external style sheet Internal Style Sheets o contained within the <style> element within the <head> section o only affect the document in which they reside Inline Styles o can define styles for a single element with the style attribute o the style attribute can be used to override a style that was set at a higher level
  • 14.
  • 15. Writing Clean CSS Code Write CSS code that is consistent and easy to read o Correct but hard-to-read: o Better: Use Comments in your code /* This is where you place your CSS comments*/
  • 16. Inheritance (to Write Simpler Style Rules) Elements in an HTML document are structured in a hierarchy o Parent elements contain child elements You can style multiple document elements with just a few style rules using inheritance o CSS properties inherit from parent to child The property descriptions list whether a property is inherited
  • 17. Using Inheritance to Write Simpler Style Rules o Specific style rules: o Using inheritance:
  • 18. Examining Basic Selection Techniques In this section, you will review style rule syntax and learn about the following basic selection techniques: 1. Using type selectors 2. Grouping selectors 3. Combining declarations 4. Using descendant selectors 5. (Universal selector)
  • 19. 1. Using Type Selectors The selector determines the element to which a style declaration is applied Type selectors are the simplest form of selector They select every element in the document that matches the style rule In the following example, all h1 elements are red
  • 20. 2. Grouping Selectors You can group selectors to which the same rules apply o Specific style rules: o Grouping selectors:
  • 21. 3. Combining Declarations You can state multiple property declarations for the same selector o Specific style rules: o Combining declarations:
  • 22. 4. Using Descendant Selectors You can select elements that are descendents of other elements Examples: o selecting only <em> elements that are contained within <p> elements o selecting only <em> elements within <li> elements within <ul> elements – more specific
  • 23. 5. Using the Universal Selector Universal selector (*) lets you select groups of elements The universal selector is always overridden by more specific selectors. Examples: o setting default color for all elements o selecting all children of the <div> element
  • 24. Using class and id Selectors In this section, you will learn to select elements of an HTML document using the following methods: 1. The class selector 2. The id selector 3. The <div> and <span> elements
  • 25. 1. Using the class Selector The class selector lets you write rules and give them a name o You can apply that name to any element you choose The class attribute lets you apply the style rule name to an element The period (.) flag character indicates the selector is a class selector
  • 26.
  • 27. 2. Using the id Selector The difference between id and class is that ID refers to only one instance of the id attribute value within a document The ID attribute is used to identify layout sections of the page The ID attribute uses a pound sign (#) flag character
  • 28.
  • 29. 3. Using the <div> and <span> Elements The <div> (division) and <span> (span of words) elements are designed to be used with CSS They let you specify logical divisions within a document that have their own name and style properties They are used with the Class and ID attributes
  • 30. <div> block element used to create logical divisions on a web page
  • 31. <span> lets you specify in-line elements that have their own name and style properties
  • 32. Other Selectors o Attribute selector o Pseudo-class and pseudo-element selectors o (Advanced: Structural Pseudo-Class selector, UI Element States selector)
  • 33. Attribute Selectors Attribute selectors let you select an element based on whether the element contains an attribute Elements can be selected based on a specific value the attribute contains Attribute selectors match against attributes and their values
  • 34.
  • 35.
  • 36. Pseudo-Class and Pseudo-Element Selectors Pseudo-classes o select elements based on characteristics other than their element name o for example, you can change the characteristics of hypertext links with pseudo-classes Pseudo-elements o let you change other aspects of a document that are not classified by standard elements such as the first letter or line of a paragraph
  • 37. Using the Link Pseudo-Classes •The link pseudo-classes let you change the style characteristics for four different hypertext link states o Because of the specificity of the pseudo-class selectors, you should always place your link pseudo-class in the order listed above (see example next page) only apply to the <a> element with an href attribute
  • 38.
  • 39. Using the :first-letter Pseudo-Element •used to apply style rules to the first letter of any element: to apply style rules to the first letter of any element
  • 40. Want to apply to one paragraph rather than all? Use CLASS Selector
  • 41. Want to Drop the First Letter? Use Float
  • 42. Using the :first-line Pseudo-Element affects the first line of text in an element
  • 43. Using the :Before and :After Pseudo-Elements let you insert created content - useful for repeated content
  • 44. CONFLICTS Multiple style sheets can apply to the same document Only one rule can apply to an element The CSS cascading mechanism determines which rules apply based on three variables: ◦ Specificity of the selector ◦ Order of the rule in the style sheet ◦ Use of the !important keyword
  • 45. Specificity (More Specific = Higher Precedence) Inline style > Internal style sheet > External style sheet ID selector > Class selector > Type selector
  • 46. Order (Latest = Higher Precedence)
  • 48. Thank you! IT4101 – WEB CONCEPTS