SlideShare a Scribd company logo
1 of 15
The Three Types of Style
Sheet
Inline, Internal (Embedded), and External Style Sheet
Inline Style Sheet
▪ This is placed inside the tag itself

▪ They are declared with the ”style =“ attribute.
▪ Example:
<p style = “color:red”> This text will be color red. </p>
Internal Style Sheet
▪ Is used if you want your HTML to have a unique style

▪ Is define using the <style> tag and goes in the head
section of the HTML document
▪ The <style> tag specifies the content type of a style
sheet with its type attribute which should be set to
“text/css”
<style type=“text/css”>
Styles go here
</style>
Internal Style Sheet
▪ Example:
<html>
<head>
<style type=“text/css”>
p {color:maroon}
</style>
</head>
<body>
<p>this text is color maroon</p>
<p>and this one too</p>
</body>
</html>
Internal Style Sheet
▪ This style sheets specifies that the text in all
instances of the <p> tag in the <body> section will be
colored maroon.
External Style Sheet
▪ Used to apply one or more styles to many pages.

▪ If you make any changes with the external style
sheet, the change is applied to all the pages where
the style sheet is used
▪ Declared in a separate file with a .css extension
▪ Called by pages whose interface it will affect
▪ They are called with the used of <link> tag that is
place in the head section of an HTML document
External Style Sheet
▪ The <link> tag should be written like this:
– <link rel=“stylesheet” type=text/css” href=“test.css” />

▪ Wherein the tag above has three attributes
respectively as follows:
▪ rel- when using an external style sheet on a
webpage, this attribute takes the value “stylesheet.”
▪ Type - when using an external style sheet on a web
page, this attribute takes the value “text/css”
▪ href – indicates the name and location of the external
style sheet to be used.
More on CSS
CSS (Cascading Style Sheet)
Multiple Style Sheet

▪ You can use multiple style sheets in one
page
▪ You can apply an inline style sheet and
an internal style sheet at the same time
or an external and internal style sheet
simultaneously
▪ But consider what should have the
highest priority from the two
Style sheet by priority
▪ Inline Style Sheet
– It has the highest priority
– It will override styles declared in an internal
style sheet, an external style sheet, and a web
browser’s default style

▪ Internal Style Sheet
– An Internal style sheet has the second has the
second highest priority
– It will override styles declared in an external
style sheet and a web browsers default style
Style sheet by priority

▪ External Style Sheet
– Has the third highest priority
– It will override web browsers default
style

▪ Browsers Default Style
– Has the lowest priority
– It is used when there is no style set for an
element in an inline, internal, or external
style sheet
Creating id’s and classes
▪ The Class Selector
– It is used to specify a style for a group of elements
– Allows you to set a particular style for many HTML elements
with the same class
Creating id’s and classes
<html>

<head>
<style>

The class selector is
defined starting with
“.” followed by its
name

.center{text-align:center;}
</style>

</head>
<body>
<h1 class = “center”> This heading is aligned center.</h1>
</body>
</html>
Creating id’s and classes
▪ The id Selector
– Specify style for a single and unique element
– Its defined with # sign before its name
– Can be written in an external and internal style sheet
Creating id’s and classes
<html>

<head>
<style>
#center{text-align:center;}
</style>
</head>
<body>
<h1 id = “center”> This heading is aligned center.</h1>
</body>
</html>

More Related Content

What's hot

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 syntaxpriyadharshini murugan
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style SheetsMarc Steel
 
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 sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)Harshita Yadav
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)AakankshaR
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpcasestudyhelp
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheetvijayta
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSAmeer Khan
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)Webtech Learning
 
An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)Ardee Aram
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSSAmit Tyagi
 

What's hot (19)

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
 
chitra
chitrachitra
chitra
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
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 (Cascading Style Sheet)
CSS (Cascading Style Sheet)CSS (Cascading Style Sheet)
CSS (Cascading Style Sheet)
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
What is CSS?
What is CSS?What is CSS?
What is CSS?
 
Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)Cascading Style Sheet (CSS)
Cascading Style Sheet (CSS)
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Css
CssCss
Css
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Css
CssCss
Css
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
 
Css
CssCss
Css
 
An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)
 
Lecture2
Lecture2Lecture2
Lecture2
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 

Viewers also liked

Rock Music Magazine Final Front Cover development
Rock Music Magazine Final Front Cover developmentRock Music Magazine Final Front Cover development
Rock Music Magazine Final Front Cover developmenthayat123
 
Music magazines annotation
Music magazines annotationMusic magazines annotation
Music magazines annotationLukeBrazierMedia
 
Photoshoot
PhotoshootPhotoshoot
Photoshoothayat123
 
Media magazine annotation
Media magazine annotationMedia magazine annotation
Media magazine annotationvanessawanner
 
Magazine cover analysis main coursework
Magazine cover analysis   main courseworkMagazine cover analysis   main coursework
Magazine cover analysis main courseworksarah123ashcroft
 
Media magazine cover, contents, double page spread analysis- complete, addi...
Media  magazine cover, contents, double page spread analysis-  complete, addi...Media  magazine cover, contents, double page spread analysis-  complete, addi...
Media magazine cover, contents, double page spread analysis- complete, addi...Heather Hutchinson
 

Viewers also liked (6)

Rock Music Magazine Final Front Cover development
Rock Music Magazine Final Front Cover developmentRock Music Magazine Final Front Cover development
Rock Music Magazine Final Front Cover development
 
Music magazines annotation
Music magazines annotationMusic magazines annotation
Music magazines annotation
 
Photoshoot
PhotoshootPhotoshoot
Photoshoot
 
Media magazine annotation
Media magazine annotationMedia magazine annotation
Media magazine annotation
 
Magazine cover analysis main coursework
Magazine cover analysis   main courseworkMagazine cover analysis   main coursework
Magazine cover analysis main coursework
 
Media magazine cover, contents, double page spread analysis- complete, addi...
Media  magazine cover, contents, double page spread analysis-  complete, addi...Media  magazine cover, contents, double page spread analysis-  complete, addi...
Media magazine cover, contents, double page spread analysis- complete, addi...
 

Similar to The three types of style sheet lesson two fourth quarter fourth year

Similar to The three types of style sheet lesson two fourth quarter fourth year (20)

BITM3730Week4.pptx
BITM3730Week4.pptxBITM3730Week4.pptx
BITM3730Week4.pptx
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
 
Introduction to css
Introduction to cssIntroduction to css
Introduction to css
 
Basic HTML/CSS
Basic HTML/CSSBasic HTML/CSS
Basic HTML/CSS
 
Css how to insert css
Css how to insert cssCss how to insert css
Css how to insert css
 
HTML STYLES
HTML STYLESHTML STYLES
HTML STYLES
 
Html styles
Html stylesHtml styles
Html styles
 
Turorial css
Turorial cssTurorial css
Turorial css
 
ch04-css-basics_final.ppt
ch04-css-basics_final.pptch04-css-basics_final.ppt
ch04-css-basics_final.ppt
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
 
CSS (Cascading Style Sheet)
CSS (Cascading Style Sheet)CSS (Cascading Style Sheet)
CSS (Cascading Style Sheet)
 
BITM3730 9-19.pptx
BITM3730 9-19.pptxBITM3730 9-19.pptx
BITM3730 9-19.pptx
 
CSS Basics (Cascading Style Sheet)
CSS Basics (Cascading Style Sheet)CSS Basics (Cascading Style Sheet)
CSS Basics (Cascading Style Sheet)
 
Css introduction
Css introductionCss introduction
Css introduction
 
Css inclusion
Css   inclusionCss   inclusion
Css inclusion
 
Css Basics
Css BasicsCss Basics
Css Basics
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
BITM3730 9-20.pptx
BITM3730 9-20.pptxBITM3730 9-20.pptx
BITM3730 9-20.pptx
 
Cascading style sheets
Cascading style sheetsCascading style sheets
Cascading style sheets
 

More from Perry Mallari

Film making fourth quarter lesson 2 third year
Film making  fourth quarter lesson 2 third yearFilm making  fourth quarter lesson 2 third year
Film making fourth quarter lesson 2 third yearPerry Mallari
 
Lesson 3 second year fourth quarter s
Lesson 3 second year fourth quarter sLesson 3 second year fourth quarter s
Lesson 3 second year fourth quarter sPerry Mallari
 
Second lesson for first year
Second lesson for first yearSecond lesson for first year
Second lesson for first yearPerry Mallari
 
Part two second year
Part two second yearPart two second year
Part two second yearPerry Mallari
 
Pointers for all year level 4th monthly test
Pointers for all year level 4th monthly testPointers for all year level 4th monthly test
Pointers for all year level 4th monthly testPerry Mallari
 
Part two second year
Part two second yearPart two second year
Part two second yearPerry Mallari
 
Sources for audio lesson two second year fourt quarter
Sources for audio lesson two second year fourt quarterSources for audio lesson two second year fourt quarter
Sources for audio lesson two second year fourt quarterPerry Mallari
 
Second year Lesson Two sources of sound
Second year Lesson Two sources of soundSecond year Lesson Two sources of sound
Second year Lesson Two sources of soundPerry Mallari
 
Lesson One Fourth QuarterThird Year High School Film Making
Lesson One Fourth QuarterThird Year High School Film MakingLesson One Fourth QuarterThird Year High School Film Making
Lesson One Fourth QuarterThird Year High School Film MakingPerry Mallari
 
Lesson One Fourth Quarter First Year High School Running A Presentation
Lesson One Fourth Quarter First Year High School Running A PresentationLesson One Fourth Quarter First Year High School Running A Presentation
Lesson One Fourth Quarter First Year High School Running A PresentationPerry Mallari
 
Lesson One Fourth Quarter Second Year High School Understanding Sounds
Lesson One Fourth Quarter Second Year High School Understanding SoundsLesson One Fourth Quarter Second Year High School Understanding Sounds
Lesson One Fourth Quarter Second Year High School Understanding SoundsPerry Mallari
 
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and StyleLesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and StylePerry Mallari
 

More from Perry Mallari (14)

Film making fourth quarter lesson 2 third year
Film making  fourth quarter lesson 2 third yearFilm making  fourth quarter lesson 2 third year
Film making fourth quarter lesson 2 third year
 
Lesson 3 second year fourth quarter s
Lesson 3 second year fourth quarter sLesson 3 second year fourth quarter s
Lesson 3 second year fourth quarter s
 
Second lesson for first year
Second lesson for first yearSecond lesson for first year
Second lesson for first year
 
Slide Design
Slide DesignSlide Design
Slide Design
 
Part two second year
Part two second yearPart two second year
Part two second year
 
Pointers for all year level 4th monthly test
Pointers for all year level 4th monthly testPointers for all year level 4th monthly test
Pointers for all year level 4th monthly test
 
Part two second year
Part two second yearPart two second year
Part two second year
 
Q and a god father
Q and a god fatherQ and a god father
Q and a god father
 
Sources for audio lesson two second year fourt quarter
Sources for audio lesson two second year fourt quarterSources for audio lesson two second year fourt quarter
Sources for audio lesson two second year fourt quarter
 
Second year Lesson Two sources of sound
Second year Lesson Two sources of soundSecond year Lesson Two sources of sound
Second year Lesson Two sources of sound
 
Lesson One Fourth QuarterThird Year High School Film Making
Lesson One Fourth QuarterThird Year High School Film MakingLesson One Fourth QuarterThird Year High School Film Making
Lesson One Fourth QuarterThird Year High School Film Making
 
Lesson One Fourth Quarter First Year High School Running A Presentation
Lesson One Fourth Quarter First Year High School Running A PresentationLesson One Fourth Quarter First Year High School Running A Presentation
Lesson One Fourth Quarter First Year High School Running A Presentation
 
Lesson One Fourth Quarter Second Year High School Understanding Sounds
Lesson One Fourth Quarter Second Year High School Understanding SoundsLesson One Fourth Quarter Second Year High School Understanding Sounds
Lesson One Fourth Quarter Second Year High School Understanding Sounds
 
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and StyleLesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
Lesson One Fourth Quarter Fourth Year High School CSS Modern Layout and Style
 

Recently uploaded

AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 

Recently uploaded (20)

AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 

The three types of style sheet lesson two fourth quarter fourth year

  • 1. The Three Types of Style Sheet Inline, Internal (Embedded), and External Style Sheet
  • 2. Inline Style Sheet ▪ This is placed inside the tag itself ▪ They are declared with the ”style =“ attribute. ▪ Example: <p style = “color:red”> This text will be color red. </p>
  • 3. Internal Style Sheet ▪ Is used if you want your HTML to have a unique style ▪ Is define using the <style> tag and goes in the head section of the HTML document ▪ The <style> tag specifies the content type of a style sheet with its type attribute which should be set to “text/css” <style type=“text/css”> Styles go here </style>
  • 4. Internal Style Sheet ▪ Example: <html> <head> <style type=“text/css”> p {color:maroon} </style> </head> <body> <p>this text is color maroon</p> <p>and this one too</p> </body> </html>
  • 5. Internal Style Sheet ▪ This style sheets specifies that the text in all instances of the <p> tag in the <body> section will be colored maroon.
  • 6. External Style Sheet ▪ Used to apply one or more styles to many pages. ▪ If you make any changes with the external style sheet, the change is applied to all the pages where the style sheet is used ▪ Declared in a separate file with a .css extension ▪ Called by pages whose interface it will affect ▪ They are called with the used of <link> tag that is place in the head section of an HTML document
  • 7. External Style Sheet ▪ The <link> tag should be written like this: – <link rel=“stylesheet” type=text/css” href=“test.css” /> ▪ Wherein the tag above has three attributes respectively as follows: ▪ rel- when using an external style sheet on a webpage, this attribute takes the value “stylesheet.” ▪ Type - when using an external style sheet on a web page, this attribute takes the value “text/css” ▪ href – indicates the name and location of the external style sheet to be used.
  • 8. More on CSS CSS (Cascading Style Sheet)
  • 9. Multiple Style Sheet ▪ You can use multiple style sheets in one page ▪ You can apply an inline style sheet and an internal style sheet at the same time or an external and internal style sheet simultaneously ▪ But consider what should have the highest priority from the two
  • 10. Style sheet by priority ▪ Inline Style Sheet – It has the highest priority – It will override styles declared in an internal style sheet, an external style sheet, and a web browser’s default style ▪ Internal Style Sheet – An Internal style sheet has the second has the second highest priority – It will override styles declared in an external style sheet and a web browsers default style
  • 11. Style sheet by priority ▪ External Style Sheet – Has the third highest priority – It will override web browsers default style ▪ Browsers Default Style – Has the lowest priority – It is used when there is no style set for an element in an inline, internal, or external style sheet
  • 12. Creating id’s and classes ▪ The Class Selector – It is used to specify a style for a group of elements – Allows you to set a particular style for many HTML elements with the same class
  • 13. Creating id’s and classes <html> <head> <style> The class selector is defined starting with “.” followed by its name .center{text-align:center;} </style> </head> <body> <h1 class = “center”> This heading is aligned center.</h1> </body> </html>
  • 14. Creating id’s and classes ▪ The id Selector – Specify style for a single and unique element – Its defined with # sign before its name – Can be written in an external and internal style sheet
  • 15. Creating id’s and classes <html> <head> <style> #center{text-align:center;} </style> </head> <body> <h1 id = “center”> This heading is aligned center.</h1> </body> </html>