Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.

Slides:



Advertisements
Similar presentations
Web Development & Design Foundations with XHTML Chapter 3 Key Concepts.
Advertisements

Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
Chapter 8 Creating Style Sheets.
Web Development & Design Foundations with XHTML Chapter 3 Key Concepts.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Chapter 6 Web Typography
Web Development & Design Foundations with HTML5
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Cascading Style Sheets SP.772 May 6, CSS Useful for creating one unified look for an entire web site. Helps to seperate style from content. Can.
COMP101 – Exploring Multimedia and Internet Computing LA2 (Thur 14:00 – 16:50) TA: Jackie Lo.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
Workshop: CSS-Part I Cascading Style Sheets add style to your HTML web pages.
4.01 Cascading Style Sheets
Computing Concepts: CSS. Aims  To understand the uses of css  To understand the different types of css  To be able to create a css file  To be able.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
1 Web Developer Foundations: Using XHTML Chapter 9 Cascading Style Sheet Concepts.
Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Cascaded Style Sheets Implementing web pages using only html/xhtml is tedious and awkward With CSS, you can design a component to be used in a web page.
Cascading style sheets (CSS)
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Chapter 6 Web Typography. 2 Principles of Web Design Chapter 5 Objectives Understand principles for type design on a Web site Use the element Understand.
Today’s objectives  Presentational | Inline | Block | Validate  CSS | Rules | Declarations.
Bare bones notes. Suggested organization for main folder. REQUIRED organization for the 115 folder.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
I NTRO TO CSS IAT100 Spring I NTRO TO CSS Covered in this lesson: Overview What is CSS? Why to use CSS? CSS for Skinning your Website Structure.
CSS: Cascading Style Sheets. 2 What are Style Sheets A style sheet is a mechanism that allows to specify how HTML (/XHTML/XML) pages should look The style.
Cascading Style Sheets
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Bare bones slide show. The format is text files, with.htm or.html extension. Hard returns, tabs, and extra spaces are ignored. DO NOT use spaces in file.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Softsmith Infotech CSS. Softsmith Infotech CSS Cascading Style sheets Enhances look and feel of the site Adds more features to plain HTML Can define properties.
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
Cascading Style Sheets
Lesson 15: Cascading Style Sheets. Objectives Identify ways to apply Web page formatting with Cascading Style Sheets (CSS1 and CSS2) using various methods.
Jozef Goetz, © 2009 Pearson Education Copyright (c) 2007 Prentice-Hall. All rights reserved. expanded by J. Goetz, 2010.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
12/20/20151 Color Fall, 2010 Modified by Linda Kenney 10/26/10.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
How to… Cascading Style Sheets. How to Insert a Style Sheet When a browser reads a style sheet, it will format the document according to it. There are.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Web Development & Design Foundations with XHTML
4.01 Cascading Style Sheets
Web Development & Design Foundations with HTML5 8th Edition
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Web Development & Design Foundations with HTML5
Madam Hazwani binti Rahmat
Web Developer & Design Foundations with XHTML
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Web Development & Design Foundations with HTML5
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Web Development & Design Foundations with H T M L 5
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2016 Terry Ann Morris, Ed.D.
4.01 Cascading Style Sheets
Presentation transcript:

Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris

OVERVIEW OF CASCADING STYLE SHEETS (CSS)  See what is possible with CSS:  Visit  Style Sheets  used for years in Desktop Publishing  apply typographical styles and spacing to printed media  CSS  provides the functionality of style sheets (and much more) for web developers  a flexible, cross-platform, standards-based language developed by the W3C. 2

Copyright © Terry Felke-Morris CSS ADVANTAGES  Greater typography and page layout control  Style is separate from structure  Styles can be stored in a separate document and associated with the web page  Potentially smaller documents  Easier site maintenance 3

Copyright © Terry Felke-Morris TYPES OF CASCADING STYLE SHEETS (1)  Inline Styles  Embedded Styles  External Styles  Imported Styles 4

Copyright © Terry Felke-Morris CASCADING STYLE SHEETS Inline Styles ◦ body section ◦ HTML style attribute ◦ apply only to the specific element Embedded Styles ◦ head section ◦ HTML style element ◦ apply to the entire web page document External Styles ◦ Separate text file with.css file extension ◦ Associate with a HTML link element in the head section of a web page ◦ Imported Styles ◦ Similar to External Styles ◦ We’ll concentrate on the other three types of styles. 5

Copyright © Terry Felke-Morris CSS SYNTAX  Style sheets are composed of "Rules" that describe the styling to be applied.  Each Rule contains a Selector and a Declaration 6

Copyright © Terry Felke-Morris CSS SYNTAX SAMPLE Configure a web page to display blue text and yellow background. body { color: blue; background-color: yellow; } This could also be written using hexadecimal color values as shown below. body { color: #0000FF; background-color: #FFFF00; } 7

Copyright © Terry Felke-Morris COMMON FORMATTING CSS 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 ◦ text-decoration ◦ width 8

Copyright © Terry Felke-Morris USING COLOR ON WEB PAGES  Computer monitors display color as intensities of red, green, and blue light  RGB Color  The values of red, green, and blue vary from 0 to 255.  Hexadecimal numbers (base 16) represent these color values. 9

Copyright © Terry Felke-Morris HEXADECIMAL COLOR VALUES # is used to indicate a hexadecimal value Hex value pairs range from 00 to FF Three hex value pairs describe an RGB color # black#FFFFFF white #FF0000 red#00FF00 green #0000FF blue#CCCCCC grey 10

Copyright © Terry Felke-Morris WEB COLOR PALETTE A collection of 216 colors Display the most similar on the Mac and PC platforms Hex values: 00, 33, 66, 99, CC, FF Color Chart

Copyright © Terry Felke-Morris MAKING COLOR CHOICES  How to choose a color scheme?  Monochromatic   Choose from a photograph or other image   Begin with a favorite color  Use one of the sites below to choose other colors   

Copyright © Terry Felke-Morris CONFIGURING COLOR WITH INLINE CSS  Inline CSS  Configured in the body of the web page  Use the style attribute of an HTML tag  Apply only to the specific element  The Style Attribute  Value: one or more style declaration property and value pairs Example: configure red color text in an element: Heading text is red 13

Copyright © Terry Felke-Morris CONFIGURING COLOR WITH INLINE CSS Example 2: configure the red text in the heading configure a gray background in the heading Separate style rule declarations with ; This is displayed as a red heading with gray background 14

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 3.1  chapter3/inlinep.html 15

Copyright © Terry Felke-Morris CSS EMBEDDED STYLES  Configured in the header section of a web page.  Use the HTML element  Apply to the entire web page document  Style declarations are contained between the opening and closing tags  Example: Configure a web page with white text on a black background 16 body { background-color: #000000; color: #FFFFFF; } body { background-color: #000000; color: #FFFFFF; }

Copyright © Terry Felke-Morris CSS EMBEDDED STYLES body { background-color: #E6E6FA; color: #191970;} h1 { background-color: #191970; color: #E6E6FA;} h2 { background-color: #AEAED4; color: #191970;} The body selector sets the global style rules for the entire page. These global rules are overridden for and elements by the h1 and h2 style rules. 17

Copyright © Terry Felke-Morris HANDS-ON PRACTICE 3.2  chapter3/starter.html  chapter3/embedded.html 18