Movatterモバイル変換


[0]ホーム

URL:


Uploaded bycasestudyhelp
PPT, PDF3,087 views

Cascading Style Sheets (CSS) help

The document provides an overview of Cascading Style Sheets (CSS), explaining its purpose in web development for styling HTML elements either through inline, internal, or external methods. It details the syntax for setting color values using hexadecimal notation and lists common CSS properties for formatting text and backgrounds. Additionally, it discusses the advantages of using external style sheets for consistent design across multiple web pages.

Embed presentation

Downloaded 42 times
HTML Tutorial 3HTML Tutorial 3Web Development & Design Foundations with XHTMLCascading Style Sheets (CSS)
Overview ofOverview ofCascading Style Sheets (CSS)Cascading Style Sheets (CSS)What is CSS?CSS stands for Cascading Style SheetsStyles define how to display HTML elementsExternal Style Sheets can save a lot of workStyles are normally saved in external .css files. Externalstyle sheets enable you to change the appearance andlayout of all the pages in a Web site, just by editing onesingle file!2
Methods of using Styles:Methods of using Styles: Styling can be added to HTML elements in 3 ways:1. Inline - using a style attribute in HTML elements2. Internal - using a <style> element in the HTML <head>section3. External - using one or more external CSS files The most common way to add styling, is to keep theCSS syntax in separate CSS files.
CSS SyntaxCSS Syntax
CSS Syntax SampleCSS Syntax SampleConfigure a Web page to display blue text and yellowbackground.body { color: blue;background-color: yellow; }This could also be written using hexadecimal colorvalues as shown below.body { color: #0000FF;background-color: #FFFF00; }5
Color ValuesColor ValuesCSS colors are defined using ahexadecimal (hex) notation for thecombination of Red, Green, and Bluecolor values (RGB). The lowest value thatcan be given to one of the light sources is0 (hex 00). The highest value is 255 (hexFF).Hex values are written as 3 double digitnumbers, starting with a # sign.
Using Color on Web PagesUsing Color on Web Pages7
Common FormattingCommon FormattingCSS PropertiesCSS Properties See Table 3.1 Common CSS Properties, including:◦ background-color◦ color◦ font-family◦ font-size◦ font-style◦ font-weight◦ line-height◦ margin◦ text-align◦ width8
Configuring Text with CSSConfiguring Text with CSSCSS properties for configuring text:◦ font-weight Configures the boldness of text◦ font-style Configures text to an italic style◦ font-size Configures the size of the text◦ font-family Configures the font typeface of the text
The font-family PropertyThe font-family Property Not everyone has the same fonts installed in theircomputer Configure a list of fonts and include a generic familynamep {font-family: Arial,Verdana, sans-serif;}
1. External Style Sheets1. External Style SheetsCSS style rules are contained in atext file separate from the XHTMLdocuments.The External Style Sheet text file:◦ extension ".css"◦ contains only style rules◦ does not contain any XHTML tags11
1.External Style Sheets -1.External Style Sheets - cont.cont.◦ Multiple web pages can associate with the same external style sheetfile.◦ Each page must include a link to the style sheet with the <link> tag. The<link> tag goes inside the head section:12mystyle.cssindex.htmindex.htmclients.htmclients.htmabout.htmabout.htmEtc…
2. Internal Style Sheet2. Internal Style SheetAn internal style sheet should be usedwhen a single document has a uniquestyle.You define internal styles in the headsection of an HTML page, inside the<style> tag, like this:Example:
Multiple Style SheetsMultiple Style Sheets If some properties have been set for the same selectorin different style sheets, the values will be inheritedfrom the more specific style sheet.  For example, assume that an external style sheet has thefollowing properties for the h1 selector: then, assume that an internal style sheet also has the followingproperty for the h1 selector: The left margin is inherited from the external style sheet and thecolor is replaced by the internal style sheet.
3. Inline Styles3. Inline StylesTo use inline styles, add the style attribute to therelevant tag. The example shows how to changethe color and the left margin of a h1 element:An inline style loses many of the advantages of astyle sheet (by mixing content withpresentation). Use this method sparingly!
ReferenceReferencehttp://www.w3schools.com/html/html_css.aspVisit @ www.casestudyhelp.comOrEmail id: casestudyassignmenthelp@gmail.com

Recommended

PPTX
PPTX
Cascading style sheet
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Css ppt
ODP
CSS Basics
PPT
cascading style sheet ppt
PPT
PDF
Introduction to HTML and CSS
PPTX
Complete Lecture on Css presentation
PPTX
Css types internal, external and inline (1)
PDF
Intro to HTML and CSS basics
PDF
Html / CSS Presentation
PPT
Css Ppt
PPT
PPTX
1 03 - CSS Introduction
PPTX
Basic Html Knowledge for students
PPTX
Css selectors
PDF
CSS3 Media Queries
PDF
Introduction to Bootstrap
PPT
Html & Css presentation
PDF
Bootstrap 5 basic
PPT
Introduction to BOOTSTRAP
PPTX
Html coding
PPTX
Css position
PDF
Intro to html 5
PPT
Html forms
PPTX
Html images syntax
PPTX
Beginners css tutorial for web designers
PPT
CSS Basics

More Related Content

PPTX
PPTX
Cascading style sheet
PPT
Introduction to Cascading Style Sheets (CSS)
PPTX
Css ppt
ODP
CSS Basics
PPT
cascading style sheet ppt
PPT
PDF
Introduction to HTML and CSS
Cascading style sheet
Introduction to Cascading Style Sheets (CSS)
Css ppt
CSS Basics
cascading style sheet ppt
Introduction to HTML and CSS

What's hot

PPTX
Complete Lecture on Css presentation
PPTX
Css types internal, external and inline (1)
PDF
Intro to HTML and CSS basics
PDF
Html / CSS Presentation
PPT
Css Ppt
PPT
PPTX
1 03 - CSS Introduction
PPTX
Basic Html Knowledge for students
PPTX
Css selectors
PDF
CSS3 Media Queries
PDF
Introduction to Bootstrap
PPT
Html & Css presentation
PDF
Bootstrap 5 basic
PPT
Introduction to BOOTSTRAP
PPTX
Html coding
PPTX
Css position
PDF
Intro to html 5
PPT
Html forms
PPTX
Html images syntax
Complete Lecture on Css presentation
Css types internal, external and inline (1)
Intro to HTML and CSS basics
Html / CSS Presentation
Css Ppt
1 03 - CSS Introduction
Basic Html Knowledge for students
Css selectors
CSS3 Media Queries
Introduction to Bootstrap
Html & Css presentation
Bootstrap 5 basic
Introduction to BOOTSTRAP
Html coding
Css position
Intro to html 5
Html forms
Html images syntax

Viewers also liked

PPTX
Beginners css tutorial for web designers
PPT
CSS Basics
PPT
CSS for Beginners
PPT
Introduction to CSS
PPT
Cascading Style Sheets(CSS)
PPTX
Web Engineering - Introduction to CSS
PDF
CSS Foundations, pt 1
PPT
Chapter 1 - Web Design
PPSX
CSS-Cascading Style Sheets - Introduction
PPTX
Crap design
PPT
CARP Design Principles
PPTX
PPTX
Your Presentation is CRAP, and That's Why I Like It
PPTX
Principles Of Effective Design
PPTX
Cascading Style Sheets (CSS) - An introduction
PPTX
Cascading style sheets - CSS
PDF
Basic css-tutorial
PPTX
Curso de cascading style sheets (css)
PPTX
Css(cascading style sheets)
Beginners css tutorial for web designers
CSS Basics
CSS for Beginners
Introduction to CSS
Cascading Style Sheets(CSS)
Web Engineering - Introduction to CSS
CSS Foundations, pt 1
Chapter 1 - Web Design
CSS-Cascading Style Sheets - Introduction
Crap design
CARP Design Principles
Your Presentation is CRAP, and That's Why I Like It
Principles Of Effective Design
Cascading Style Sheets (CSS) - An introduction
Cascading style sheets - CSS
Basic css-tutorial
Curso de cascading style sheets (css)
Css(cascading style sheets)

Similar to Cascading Style Sheets (CSS) help

PPTX
HTML to CSS Basics Exer 2.pptx
PDF
Css tutorial
PPTX
Cascading style sheets
PPTX
basic programming language AND HTML CSS JAVApdf
PPTX
cascadingstylesheets,introduction.css styles-210909054722.pptx
PPTX
Cascading style sheets
PPTX
chapter3 chapter2 of Web Development and Design Foundations with HTML5
DOC
Css introduction
PDF
cascading style sheets ppt.sildeshower phone view
PDF
CSCADING style sheet. Internal external inline
PDF
css-ppt.pdf
PPT
Chapter3
PPTX
BITM3730 9-19.pptx
PPTX
BITM3730 9-20.pptx
PPT
Css Founder.com | Cssfounder Company
PPT
Introduction to css by programmerblog.net
PPT
Chapter 3 - Web Design
PPTX
CSS____4563276__HTML___________0989.pptx
PPT
Css present
PPTX
Cis145 03 configuring-withcss
HTML to CSS Basics Exer 2.pptx
Css tutorial
Cascading style sheets
basic programming language AND HTML CSS JAVApdf
cascadingstylesheets,introduction.css styles-210909054722.pptx
Cascading style sheets
chapter3 chapter2 of Web Development and Design Foundations with HTML5
Css introduction
cascading style sheets ppt.sildeshower phone view
CSCADING style sheet. Internal external inline
css-ppt.pdf
Chapter3
BITM3730 9-19.pptx
BITM3730 9-20.pptx
Css Founder.com | Cssfounder Company
Introduction to css by programmerblog.net
Chapter 3 - Web Design
CSS____4563276__HTML___________0989.pptx
Css present
Cis145 03 configuring-withcss

Recently uploaded

PDF
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
PDF
FAMILY ASSESSMENT FORMAT - CHN practical
PPTX
Searching in PubMed andCochrane_Practical Presentation.pptx
PDF
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
PDF
Models of Teaching - TNTEU - B.Ed I Semester - Teaching and Learning - BD1TL ...
PDF
Projecte de la porta de la classe de primer A: Mar i cel.
PDF
Unit-III pdf (Basic listening Skill, Effective Writing Communication & Writin...
PPTX
Details of Epithelial and Connective Tissue.pptx
PPTX
Unit I — Introduction to Anatomical Terms and Organization of the Human Body
PPTX
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
PPTX
Limpitlaw "Licensing: From Mindset to Milestones"
PPTX
Semester 6 UNIT 2 Dislocation of hip.pptx
PPTX
Cost of Capital - Cost of Equity, Cost of debenture, Cost of Preference share...
PDF
Toward Massive, Ultrareliable, and Low-Latency Wireless Communication With Sh...
PPTX
ATTENTION -PART 2.pptx Shilpa Hotakar for I semester BSc students
PPTX
PURPOSIVE SAMPLING IN EDUCATIONAL RESEARCH RACHITHRA RK.pptx
PPTX
York "Collaboration for Research Support at U-M Library"
PPTX
AI_in_Daily_Life_Presentation and more.pptx
PPTX
extracting significant information to formulate sound judgement
PPTX
2025-2026 History in your Hands Class 4 December 2025 January 2026 .pptx
The Drift Principle: When Information Accelerates Faster Than Minds Can Compress
FAMILY ASSESSMENT FORMAT - CHN practical
Searching in PubMed andCochrane_Practical Presentation.pptx
DHA/HAAD/MOH/DOH OPTOMETRY MCQ PYQ. .pdf
Models of Teaching - TNTEU - B.Ed I Semester - Teaching and Learning - BD1TL ...
Projecte de la porta de la classe de primer A: Mar i cel.
Unit-III pdf (Basic listening Skill, Effective Writing Communication & Writin...
Details of Epithelial and Connective Tissue.pptx
Unit I — Introduction to Anatomical Terms and Organization of the Human Body
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
Limpitlaw "Licensing: From Mindset to Milestones"
Semester 6 UNIT 2 Dislocation of hip.pptx
Cost of Capital - Cost of Equity, Cost of debenture, Cost of Preference share...
Toward Massive, Ultrareliable, and Low-Latency Wireless Communication With Sh...
ATTENTION -PART 2.pptx Shilpa Hotakar for I semester BSc students
PURPOSIVE SAMPLING IN EDUCATIONAL RESEARCH RACHITHRA RK.pptx
York "Collaboration for Research Support at U-M Library"
AI_in_Daily_Life_Presentation and more.pptx
extracting significant information to formulate sound judgement
2025-2026 History in your Hands Class 4 December 2025 January 2026 .pptx

Cascading Style Sheets (CSS) help

  • 1.
    HTML Tutorial 3HTMLTutorial 3Web Development & Design Foundations with XHTMLCascading Style Sheets (CSS)
  • 2.
    Overview ofOverview ofCascadingStyle Sheets (CSS)Cascading Style Sheets (CSS)What is CSS?CSS stands for Cascading Style SheetsStyles define how to display HTML elementsExternal Style Sheets can save a lot of workStyles are normally saved in external .css files. Externalstyle sheets enable you to change the appearance andlayout of all the pages in a Web site, just by editing onesingle file!2
  • 3.
    Methods of usingStyles:Methods of using Styles: Styling can be added to HTML elements in 3 ways:1. Inline - using a style attribute in HTML elements2. Internal - using a <style> element in the HTML <head>section3. External - using one or more external CSS files The most common way to add styling, is to keep theCSS syntax in separate CSS files.
  • 4.
  • 5.
    CSS Syntax SampleCSSSyntax SampleConfigure a Web page to display blue text and yellowbackground.body { color: blue;background-color: yellow; }This could also be written using hexadecimal colorvalues as shown below.body { color: #0000FF;background-color: #FFFF00; }5
  • 6.
    Color ValuesColor ValuesCSScolors are defined using ahexadecimal (hex) notation for thecombination of Red, Green, and Bluecolor values (RGB). The lowest value thatcan be given to one of the light sources is0 (hex 00). The highest value is 255 (hexFF).Hex values are written as 3 double digitnumbers, starting with a # sign.
  • 7.
    Using Color onWeb PagesUsing Color on Web Pages7
  • 8.
    Common FormattingCommon FormattingCSSPropertiesCSS Properties See Table 3.1 Common CSS Properties, including:◦ background-color◦ color◦ font-family◦ font-size◦ font-style◦ font-weight◦ line-height◦ margin◦ text-align◦ width8
  • 9.
    Configuring Text withCSSConfiguring Text with CSSCSS properties for configuring text:◦ font-weight Configures the boldness of text◦ font-style Configures text to an italic style◦ font-size Configures the size of the text◦ font-family Configures the font typeface of the text
  • 10.
    The font-family PropertyThefont-family Property Not everyone has the same fonts installed in theircomputer Configure a list of fonts and include a generic familynamep {font-family: Arial,Verdana, sans-serif;}
  • 11.
    1. External StyleSheets1. External Style SheetsCSS style rules are contained in atext file separate from the XHTMLdocuments.The External Style Sheet text file:◦ extension ".css"◦ contains only style rules◦ does not contain any XHTML tags11
  • 12.
    1.External Style Sheets-1.External Style Sheets - cont.cont.◦ Multiple web pages can associate with the same external style sheetfile.◦ Each page must include a link to the style sheet with the <link> tag. The<link> tag goes inside the head section:12mystyle.cssindex.htmindex.htmclients.htmclients.htmabout.htmabout.htmEtc…
  • 13.
    2. Internal StyleSheet2. Internal Style SheetAn internal style sheet should be usedwhen a single document has a uniquestyle.You define internal styles in the headsection of an HTML page, inside the<style> tag, like this:Example:
  • 14.
    Multiple Style SheetsMultipleStyle Sheets If some properties have been set for the same selectorin different style sheets, the values will be inheritedfrom the more specific style sheet.  For example, assume that an external style sheet has thefollowing properties for the h1 selector: then, assume that an internal style sheet also has the followingproperty for the h1 selector: The left margin is inherited from the external style sheet and thecolor is replaced by the internal style sheet.
  • 15.
    3. Inline Styles3.Inline StylesTo use inline styles, add the style attribute to therelevant tag. The example shows how to changethe color and the left margin of a h1 element:An inline style loses many of the advantages of astyle sheet (by mixing content withpresentation). Use this method sparingly!
  • 16.

[8]ページ先頭

©2009-2025 Movatter.jp