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

More Related Content

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

What's hot

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

Viewers also liked

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

Similar to Cascading Style Sheets (CSS) help

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

Recently uploaded

PDF
FAMILY ASSESSMENT FORMAT - CHN practical
PPTX
AI_in_Daily_Life_Presentation and more.pptx
PPTX
ATTENTION -PART 2.pptx Shilpa Hotakar for I semester BSc students
PPTX
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
PPTX
Campfens "The Data Qualify Challenge: Publishers, institutions, and funders r...
PPTX
Searching in PubMed andCochrane_Practical Presentation.pptx
PPTX
Semester 6 UNIT 2 Dislocation of hip.pptx
PPTX
The Cell & Cell Cycle-detailed structure and function of organelles.pptx
PPTX
Unit I — Introduction to Anatomical Terms and Organization of the Human Body
PDF
All Students Workshop 25 Yoga Wellness by LDMMIA
PDF
Scalable-MADDPG-Based Cooperative Target Invasion for a Multi-USV System.pdf
PPTX
2025-2026 History in your Hands Class 4 December 2025 January 2026 .pptx
PDF
BỘ TEST KIỂM TRA CUỐI HỌC KÌ 1 - TIẾNG ANH 6-7-8-9 GLOBAL SUCCESS - PHIÊN BẢN...
PDF
Models of Teaching - TNTEU - B.Ed I Semester - Teaching and Learning - BD1TL ...
PPTX
How to Manage Package Reservation in Odoo 18 Inventory
PDF
Analyzing the data of your initial survey
PPTX
Semester 6 unit 2 Atopic dermatitis.pptx
PPTX
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
PPTX
Limpitlaw "Licensing: From Mindset to Milestones"
PPTX
Introduction-to-Anatomy-and-Physiology.pptx
FAMILY ASSESSMENT FORMAT - CHN practical
AI_in_Daily_Life_Presentation and more.pptx
ATTENTION -PART 2.pptx Shilpa Hotakar for I semester BSc students
10-12-2025 Francois Staring How can Researchers and Initial Teacher Educators...
Campfens "The Data Qualify Challenge: Publishers, institutions, and funders r...
Searching in PubMed andCochrane_Practical Presentation.pptx
Semester 6 UNIT 2 Dislocation of hip.pptx
The Cell & Cell Cycle-detailed structure and function of organelles.pptx
Unit I — Introduction to Anatomical Terms and Organization of the Human Body
All Students Workshop 25 Yoga Wellness by LDMMIA
Scalable-MADDPG-Based Cooperative Target Invasion for a Multi-USV System.pdf
2025-2026 History in your Hands Class 4 December 2025 January 2026 .pptx
BỘ TEST KIỂM TRA CUỐI HỌC KÌ 1 - TIẾNG ANH 6-7-8-9 GLOBAL SUCCESS - PHIÊN BẢN...
Models of Teaching - TNTEU - B.Ed I Semester - Teaching and Learning - BD1TL ...
How to Manage Package Reservation in Odoo 18 Inventory
Analyzing the data of your initial survey
Semester 6 unit 2 Atopic dermatitis.pptx
Accounting Skills Paper-II (Registers of PACs and Credit Co-operative Societies)
Limpitlaw "Licensing: From Mindset to Milestones"
Introduction-to-Anatomy-and-Physiology.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