SlideShare a Scribd company logo
Teaching Presentation

                CSS-Lesson: I
            Topic: Cascading Style
              Sheet (CSS) Basics
                           By Jakia Salam




12/9/2011
Lesson Objectives:
      Introduction to CSS

      Define a style rule or syntax

      The id and class Selectors

      Applying a style sheet to a Web Page

      Questions and Answers




12/9/2011
Introducing CSS
      CSS stands for Cascading Style Sheet. Web developers
       define the look and feel of their Web pages using CSS

      It allows developers and designers to separate content
       from design. CSS can be applied to any HTML and XHTML
       file to render HTML or XHTML document using a Browser

      CSS provides consistent look and feel to an entire website
       through precise control of web page elements

      Versions include CSS1, CSS2, CSS2.1 and CSS3 (current
       version)

      Compatibility issues with different versions of CSS and
       browsers need to be considered as part of web site design

12/9/2011
Introducing CSS




12/9/2011
Define style rule
      Basic syntax for CSS style is:
        Selector { Property 1: value1; Property 2: value2; Property 3:
          value 3;……}

      The selector is normally the HTML element you want to
       style

      Each declaration consists of a property and a value




12/9/2011
The id selector
      The id selector is used to specify a style for a single,
       unique element.

      The id selector uses the id attribute of the HTML
       element, and is defined with a “#”.

      The style rule below will be applied to the element with
       id=“header”:




     Result:


12/9/2011
The class selector
      The class selector is used to specify a style for a group
       of elements. Unlike the id selector, the class selector is
       most often used on several elements

      The class selector uses the HTML class attribute, and is
       defined with a “.” The style rule below will be applied
       to the element with class=“imageright”


                          Result




12/9/2011
Cascade in Cascading Style Sheet
      An webpage is a combination of several style sheets:




12/9/2011
Three Ways to Insert CSS

      External style sheet
      Internal style sheet
      Inline style




12/9/2011
External Style Sheets
      External style sheet is a separate document with a .css
       extension.

      Linking an external style sheet <link> or @import:




12/9/2011
Why external CSS is always a
     better choice?

      It keeps your website design and content separate. It is
       much easier to reuse your CSS code if you have it in a
       separate file

      You can make any changes to your web pages with just a
       few changes in a single CSS file

      Clean code that is easy to understand




12/9/2011
Embedded Style Sheets
      Embedded Styles are directly inserted within the head
       element of an HTML document using <style> tag.

     <style type=“text/css”> style rules </style>

      Example:            Code for Embedded Style




12/9/2011
Inline Style Sheets
      Styles are directly applied to specific elements using style
       attribute.

     <element style=“style rules”>…………</element>

      Example:
                             Inline Style




      Very clear exactly what page element is being formatted

      Not recommend in most cases.

12/9/2011
CSS Demo
      http://www.w3schools.com/css/demo_default.htm




12/9/2011
Some of my sample web designs using CSS




12/9/2011
Cascading Style Sheet Resources:
      W3 School

      CSS Beginner Tutorial

      Web Style Sheets CSS tips & tricks

      Zen Garden




12/9/2011
Thank You



12/9/2011
Any Questions?



12/9/2011
Website:
      jakiasalam.com

      NCDLA 2009 Distance Learning Awards




12/9/2011
Website with and without CSS


      http://www.jakiasalam.com/portfolio/websites/links.p
       hp

      http://www.jakiasalam.com/portfolio/websites/linkste
       st.php




12/9/2011
User defined
      Almost all browsers allow users to modify the default
       setting of the internal style sheet.

      Example: using user defined CSS in safari browser




12/9/2011

More Related Content

What's hot

Html n CSS
Html n CSSHtml n CSS
Html n CSS
Sukrit Gupta
 
Website design 2
Website design 2Website design 2
Website design 2
Mike Oakshott
 
CSS 3, Style and Beyond
CSS 3, Style and BeyondCSS 3, Style and Beyond
CSS 3, Style and Beyond
Samsung Open Source Group
 
Welcome to css!
Welcome to css!Welcome to css!
Welcome to css!
sidneyodingo
 
CSS LAY OUT
CSS LAY OUTCSS LAY OUT
CSS LAY OUTkylleses
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
SiddhantSingh980217
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Richard Smyth
 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTML
SiddharthBorderwala
 
Introduction to CSS Class - 1
Introduction to CSS Class - 1Introduction to CSS Class - 1
Introduction to CSS Class - 1
Nouman Baloch
 
Css
CssCss
Introduction of css
Introduction of cssIntroduction of css
Introduction of css
Dinesh Kumar
 
CSS introduction
CSS introductionCSS introduction
CSS introduction
CloudTech 
 
How to get better looking search results in SharePoint with Display Templates
How to get better looking search results in SharePoint with Display TemplatesHow to get better looking search results in SharePoint with Display Templates
How to get better looking search results in SharePoint with Display Templates
KieferConsulting
 
INFT132 093 05 Cascading Style Sheets
INFT132 093 05 Cascading Style SheetsINFT132 093 05 Cascading Style Sheets
INFT132 093 05 Cascading Style Sheets
Michael Rees
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Ameer Khan
 
Wordpress child-theme
Wordpress child-themeWordpress child-theme
Wordpress child-theme
Tahir Shahzad
 
Getting Started with WordPress Child Theme
Getting Started with WordPress  Child ThemeGetting Started with WordPress  Child Theme
Getting Started with WordPress Child Theme
Tahir Shahzad
 

What's hot (20)

Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
Website design 2
Website design 2Website design 2
Website design 2
 
CSS 3, Style and Beyond
CSS 3, Style and BeyondCSS 3, Style and Beyond
CSS 3, Style and Beyond
 
Welcome to css!
Welcome to css!Welcome to css!
Welcome to css!
 
CSS LAY OUT
CSS LAY OUTCSS LAY OUT
CSS LAY OUT
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Introduction to the Web and HTML
Introduction to the Web and HTMLIntroduction to the Web and HTML
Introduction to the Web and HTML
 
Introduction to CSS Class - 1
Introduction to CSS Class - 1Introduction to CSS Class - 1
Introduction to CSS Class - 1
 
Css
CssCss
Css
 
Introduction css
Introduction cssIntroduction css
Introduction css
 
Css
CssCss
Css
 
Introduction of css
Introduction of cssIntroduction of css
Introduction of css
 
CSS introduction
CSS introductionCSS introduction
CSS introduction
 
How to get better looking search results in SharePoint with Display Templates
How to get better looking search results in SharePoint with Display TemplatesHow to get better looking search results in SharePoint with Display Templates
How to get better looking search results in SharePoint with Display Templates
 
INFT132 093 05 Cascading Style Sheets
INFT132 093 05 Cascading Style SheetsINFT132 093 05 Cascading Style Sheets
INFT132 093 05 Cascading Style Sheets
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Wordpress child-theme
Wordpress child-themeWordpress child-theme
Wordpress child-theme
 
Getting Started with WordPress Child Theme
Getting Started with WordPress  Child ThemeGetting Started with WordPress  Child Theme
Getting Started with WordPress Child Theme
 
Css inclusion
Css   inclusionCss   inclusion
Css inclusion
 

Viewers also liked

Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
priyadharshini murugan
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style SheetsMarc Steel
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
vijayta
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
AakankshaR
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
Michael Jhon
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Amit Tyagi
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
abhilashagupta
 

Viewers also liked (9)

Introduction to css & its attributes with syntax
Introduction to css & its attributes with syntaxIntroduction to css & its attributes with syntax
Introduction to css & its attributes with syntax
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)
 
CSS ppt
CSS pptCSS ppt
CSS ppt
 
cascading style sheet ppt
cascading style sheet pptcascading style sheet ppt
cascading style sheet ppt
 

Similar to Teaching presentation

The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbook
jackchenvlo
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
wubiederebe1
 
CSS.ppt
CSS.pptCSS.ppt
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer Notes
Vskills
 
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 2Erin M. Kidwell
 
New Css style
New Css styleNew Css style
New Css style
BUDNET
 
This is css which compiled by alex that is impo
This is css which compiled by alex that is impoThis is css which compiled by alex that is impo
This is css which compiled by alex that is impo
AlebelAyalneh
 
Using Templates And Cascading Style Sheets10
Using Templates And Cascading Style Sheets10Using Templates And Cascading Style Sheets10
Using Templates And Cascading Style Sheets10Sutinder Mann
 
Act 06 - CSS para aplicaciones web y responsibo
Act 06 - CSS para aplicaciones web y responsiboAct 06 - CSS para aplicaciones web y responsibo
Act 06 - CSS para aplicaciones web y responsibo
AlexBaldeon2
 
Lecture 3CSS part 1.pptx
Lecture 3CSS part 1.pptxLecture 3CSS part 1.pptx
Lecture 3CSS part 1.pptx
GmachImen
 
Style and Selector
Style and SelectorStyle and Selector
Style and Selector
Yaowaluck Promdee
 
Rational HATS and CSS
Rational HATS and CSSRational HATS and CSS
Rational HATS and CSS
Strongback Consulting
 
Shyam sunder Rajasthan Computer
Shyam sunder Rajasthan ComputerShyam sunder Rajasthan Computer
Shyam sunder Rajasthan Computer
shyamverma305
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
nikhilsh66131
 
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
ZahouAmel1
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
Mukesh Tekwani
 

Similar to Teaching presentation (20)

The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbook
 
Chapter 3 - CSS.pdf
Chapter 3 - CSS.pdfChapter 3 - CSS.pdf
Chapter 3 - CSS.pdf
 
CSS.ppt
CSS.pptCSS.ppt
CSS.ppt
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer Notes
 
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
 
New Css style
New Css styleNew Css style
New Css style
 
This is css which compiled by alex that is impo
This is css which compiled by alex that is impoThis is css which compiled by alex that is impo
This is css which compiled by alex that is impo
 
Using Templates And Cascading Style Sheets10
Using Templates And Cascading Style Sheets10Using Templates And Cascading Style Sheets10
Using Templates And Cascading Style Sheets10
 
Act 06 - CSS para aplicaciones web y responsibo
Act 06 - CSS para aplicaciones web y responsiboAct 06 - CSS para aplicaciones web y responsibo
Act 06 - CSS para aplicaciones web y responsibo
 
Lecture 3CSS part 1.pptx
Lecture 3CSS part 1.pptxLecture 3CSS part 1.pptx
Lecture 3CSS part 1.pptx
 
Lecture-6.pptx
Lecture-6.pptxLecture-6.pptx
Lecture-6.pptx
 
Style and Selector
Style and SelectorStyle and Selector
Style and Selector
 
Css class-01
Css class-01Css class-01
Css class-01
 
Rational HATS and CSS
Rational HATS and CSSRational HATS and CSS
Rational HATS and CSS
 
Shyam sunder Rajasthan Computer
Shyam sunder Rajasthan ComputerShyam sunder Rajasthan Computer
Shyam sunder Rajasthan Computer
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Full
FullFull
Full
 
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
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 

Recently uploaded

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 

Recently uploaded (20)

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 

Teaching presentation

  • 1. Teaching Presentation CSS-Lesson: I Topic: Cascading Style Sheet (CSS) Basics By Jakia Salam 12/9/2011
  • 2. Lesson Objectives:  Introduction to CSS  Define a style rule or syntax  The id and class Selectors  Applying a style sheet to a Web Page  Questions and Answers 12/9/2011
  • 3. Introducing CSS  CSS stands for Cascading Style Sheet. Web developers define the look and feel of their Web pages using CSS  It allows developers and designers to separate content from design. CSS can be applied to any HTML and XHTML file to render HTML or XHTML document using a Browser  CSS provides consistent look and feel to an entire website through precise control of web page elements  Versions include CSS1, CSS2, CSS2.1 and CSS3 (current version)  Compatibility issues with different versions of CSS and browsers need to be considered as part of web site design 12/9/2011
  • 5. Define style rule  Basic syntax for CSS style is: Selector { Property 1: value1; Property 2: value2; Property 3: value 3;……}  The selector is normally the HTML element you want to style  Each declaration consists of a property and a value 12/9/2011
  • 6. The id selector  The id selector is used to specify a style for a single, unique element.  The id selector uses the id attribute of the HTML element, and is defined with a “#”.  The style rule below will be applied to the element with id=“header”: Result: 12/9/2011
  • 7. The class selector  The class selector is used to specify a style for a group of elements. Unlike the id selector, the class selector is most often used on several elements  The class selector uses the HTML class attribute, and is defined with a “.” The style rule below will be applied to the element with class=“imageright” Result 12/9/2011
  • 8. Cascade in Cascading Style Sheet  An webpage is a combination of several style sheets: 12/9/2011
  • 9. Three Ways to Insert CSS  External style sheet  Internal style sheet  Inline style 12/9/2011
  • 10. External Style Sheets  External style sheet is a separate document with a .css extension.  Linking an external style sheet <link> or @import: 12/9/2011
  • 11. Why external CSS is always a better choice?  It keeps your website design and content separate. It is much easier to reuse your CSS code if you have it in a separate file  You can make any changes to your web pages with just a few changes in a single CSS file  Clean code that is easy to understand 12/9/2011
  • 12. Embedded Style Sheets  Embedded Styles are directly inserted within the head element of an HTML document using <style> tag. <style type=“text/css”> style rules </style>  Example: Code for Embedded Style 12/9/2011
  • 13. Inline Style Sheets  Styles are directly applied to specific elements using style attribute. <element style=“style rules”>…………</element>  Example: Inline Style  Very clear exactly what page element is being formatted  Not recommend in most cases. 12/9/2011
  • 14. CSS Demo  http://www.w3schools.com/css/demo_default.htm 12/9/2011
  • 15. Some of my sample web designs using CSS 12/9/2011
  • 16. Cascading Style Sheet Resources:  W3 School  CSS Beginner Tutorial  Web Style Sheets CSS tips & tricks  Zen Garden 12/9/2011
  • 19. Website:  jakiasalam.com  NCDLA 2009 Distance Learning Awards 12/9/2011
  • 20. Website with and without CSS  http://www.jakiasalam.com/portfolio/websites/links.p hp  http://www.jakiasalam.com/portfolio/websites/linkste st.php 12/9/2011
  • 21. User defined  Almost all browsers allow users to modify the default setting of the internal style sheet.  Example: using user defined CSS in safari browser 12/9/2011