INTRODUCING CSS What CSS does How CSS works Rules, properties, and values.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
Intro To Cascading Style Sheets By Mario Yannakakis.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
UNDERSTANDING CSS: THINKING INSIDE THE BOX The Cottage Garden The cottage garden is a distinct style of garden that uses an informal design, dense planting.
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
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.
Tutorial 3 Introducing Cascading Style Sheets. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Learn about Cascading Style Sheets Write.
Cascading Style Sheets Controlling the Display Of Web Content.
CSS Basics LIS Webteam April 8, Why CSS? What’s wrong with HTML? Structure vs Style Early web design used hacks to style webpages with HTML – like.
1 Creating Web Pages Part 3. 2 CASCADING STYLE SHEETS (CSS): What exactly are they? Set of rules that define how a web browser should display an HTML.
4.01 Cascading Style Sheets
CM143 Week 4 Introducing CSS. Cascading Style Sheets A definition for the style in which an element of the webpage will be displayed Border width, colour,
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Working with Text and Cascading Style Sheets Adobe Dreamweaver Chapter 3.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
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.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
CSS Style Rules Guang Tong, Zhan L;lo’p[ Css Style Rule Guang Tong Zhan Three ways to insert CSS 1 External style sheet 2 Internal style sheet 3 Inline.
Cascading style sheets (CSS)
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
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.
CSS Basic (cascading style sheets)
Form Tag How to use Form Tag Something NEW ? PARAMETER Attribute NAME Specifies the name for a form To specify which form to submit with JavaScript, this.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
CS134 Web Design & Development Cascading Style Sheets (CSS) Mehmud Abliz.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Quick Questions 1. What does HTML stand for? 2. What are the three main languages of the Web? 3. What is the purpose of the tags? 4. Why do we indent different.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 8: Working with Style Sheets.
Introduction to CSS. What is CSS? CSS ("Cascading Style Sheets") determines how the elements in our XHTML documents are displayed and formatted. By using.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 7: CSS Building Blocks.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
Introduction To CSS by: Alexandra Vlachakis Sandy Creek High School, Fayette County Schools Content and Resources Used With Permission: Interact With Web.
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.
Tutorial 3 Designing a Web Page with CSS
HTML5 and CSS3 Illustrated Unit C: Getting Started with CSS.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
Cascading Style Sheets - CSS December 20, 2008 NTPCUG Expression Web SIG.
CASCADING STYLE SHEET CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem.
Cascading Style Sheets Using HTML. What are they? A set of style rules that tell the web browser how to present a web page or document. In earlier versions.
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.
Introduction To CSS. Lesson 1: History of CSS CSS was proposed in 1994 as a web styling language. To helps solve some of the problems HTML 4. There were.
HTML Extra Markup CS 1150 Spring 2017.
Getting Started with CSS
Formatting Text with CSS
4.01 Cascading Style Sheets
Intro to CSS CS 1150 Fall 2016.
UNDERSTANDING CSS: THINKING INSIDE THE BOX The Cottage Garden The cottage garden is a distinct style of garden that uses an informal design, dense.
CASCADING STYLE SHEET CSS.
FOREGROUND COLOR h1 { color: DarkCyan;} h2 { color: #ee4e80;} p { color: rgb(100, 100, 90);} The three traditional ways to specify colors: Color name.
Website Design 3
Cascading Style Sheets - Building a stylesheet
Intro to CSS CS 1150 Spring 2017.
Cascading Style Sheets Color and Font Properties
Cascading Style Sheets (Introduction)
Cascading Style Sheets (Introduction)
Web Design and Development
Cascading Style Sheets - Building a stylesheet
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
4.01 Cascading Style Sheets
Web Programming and Design
Presentation transcript:

INTRODUCING CSS What CSS does How CSS works Rules, properties, and values

HOW TOMAKE YOUR WEB PAGES MORE ATTRACTIVE, CONTROLLING THE DESIGN OF THEM USING CSS.  Introduce you to how CSS works  Teach you how to write CSS rules  Show you how CSS rules apply to HTML pages

UNDERSTANDING CSS  Imagine that there is an invisible box around every HTML element  BLOCK & INLINE ELEMENTS  CSS allows you to create rules that control the way that each individual box (and the contents wdof that box) is presented

EXAMPLES

CSS ASSOCIATES STYLE RULES WITH HTML ELEMENTS  A CSS rule contains two parts: a selector and a declaration

CSS PROPERTIES AFFECT HOW ELEMENTS ARE DISPLAYED  CSS declarations sit inside curly brackets and each is made up of two parts: a property and a value, separated by a colon. You can specify several properties in one declaration, each separated by a semi-colon

EXAMPLE  This example uses two documents: the HTML file (example.html) and a separate CSS file (example.css). The fifth line of HTML uses the element to indicate where the CSS file is located.

USING EXTERNAL CSS  Results

USING INTERNAL CSS

CSS SELECTORS  chapter-10/css-selectors.html Universal Selector  Type Selector  Class Selector  ID Selector  Child SelectorDescendant Selector  Adjacent Sibling Selector  General Sibling Selector

HOW CSS RULES CASCADE  chapter-10/cascade.html

INHERITANCE  chapter-10/inheritance.html

EXTERNAL STYLE SHEETS  several advantages  Sometimes you might consider placing CSS rules

DIFFERENT VERSIONS OF CSS & BROWSER QUIRKS  CSS will tell you that some browsers display a few of the CSS properties in an unexpected way  When you look at your site in more than one browser, you might find that some elements on your page do not look as you expect them to

SUMMARY  CSS treats each HTML e XX lement as if it appears inside its own box  Rules are made up of selectors and declarations  Different types of selectors allow you to target your rules at different elements.  Declarations are made up of two parts  CSS rules usually appear in a separate document, although they may appear within an HTML page.

CSS COLOR  How to specify colors  Color terminology and contrast  Background color

FOREGROUND COLOR  chapter-11/foreground-color.html

BACKGROUND COLOR  chapter-11/background-color.html

UNDERSTANDING COLOR

 RGB Values  Hex Codes  Color Names  Hue  Saturation  Brightness

CONTRAST  Low, Medium. High

CSS 3: OPACITY  chapter-11/opacity.html

CSS 3: HSL COLORS  Hue, saturation, lightness

CSS 3: HSL &HSLA  chapter-11/hsla.html

SUMMARY COLOR  Color not only brings your site to life, but also helps convey the mood and evokes reactions  There are three ways to specify colors in CSS: RGB values, hex codes, and color names.  Color pickers can help you find the color you want.  It is important to ensure that there is enough contrast between any text and the background color  CSS3 has introduced an extra value for RGB colors to indicate opacity. It is known as RGBA  CSS3 also allows you to specify colors as HSL values, with an optional opacity value. It is known as HSLA.