CSS Cascading Style Sheets. Session Checklist ► Learn why style sheets are needed and their advantages and disadvantages ► Learn the format of a style.

Slides:



Advertisements
Similar presentations
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Advertisements

CSS The basics { }. CSS Cascading Style Sheets - language used to – describe html appearance & formatting Style Sheet - file that describes – how html.
/k/k 1212 Cascading Style Sheets Part one Marko Boon
Introducing CSS CIS 133 mashup Javascript, jQuery and XML 1.
กระบวนวิชา 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.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Prepared by ackoo Styli n g your page (font type, font size, colors, text decoration, alignment, set margin, table padding, etc.) References: W3Schools.
Style Sheets: the right way to specify rendering.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
LBSC 690: Session 6 CSS, XML/XSLT Jimmy Lin College of Information Studies University of Maryland Monday, October 15, 2007.
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,
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.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
HTML - Quiz #2 Attendance CODE:
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
CSS Cascading Style Sheets By Garrett Garman. CSS Why use Style Sheets? Separates Appearance and Structure Modularity Quick and Easy changes Flexibility.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
18 People Surveyed HTML (HyperText Markup Language) HTML “tags” Describes structure Building blocks Headings, paragraphs, lists, links, images, quotes,
1 What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles are normally stored in Style Sheets  Styles.
Cascading Style Sheets
ITCS373: Internet Technology Week 3: Introduction to CSS Dr. Faisal Al-Qaed.
XHTML/CSS Week 3. This Week  Quiz to revise last week (XHTML and DW)  CSS - Part 2  Using HTML Tables.
CO1552 – Web Application Development Cascading Style Sheets.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
The Web Wizard’s Guide To DHTML and CSS Chapter 1 A Review of CSS1.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
IS 360 Declaring CSS Styles. Slide 2 Introduction Learn about the three ways to declare a style Inline / embedded / external Learn about the effect of.
The Teacher HTML HTML (3) Cascading Style Sheets.
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
HTML - Quiz #2 Attendance CODE:
Web Design and Development for Business Lecture 4 Cascading Style Sheet (CSS)
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
The Web Wizard’s Guide To DHTML and CSS Chapter 1 A Review of CSS1.
Cascading Style Sheets
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Cascading Style Sheets
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.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Designing Web Pages The case for CSS. The Power of CSS css Zen Garden
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.
CSS Cascading Style Sheets *referenced from
CSS DHS Web Design. Location Between the & Start with – End with –
1 Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size, font color etc…
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.
1 Cascading Style Sheets
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
4.01 Cascading Style Sheets
>> Introduction to CSS
Introduction to CSS.
Madam Hazwani binti Rahmat
CX Introduction to Web Programming
Introduction to Web programming
CASCADING STYLE SHEET CSS.
Introduction to CSS.
Stylin’ with CSS.
Introduction to Cascading Style Sheets (CSS)
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Introduction to CSS.
Made By : Lavish Chauhan & Abhay Verma
Stylin’ with CSS.
4.01 Cascading Style Sheets
External Style Sheets.
Stylin’ with CSS.
Presentation transcript:

CSS Cascading Style Sheets

Session Checklist ► Learn why style sheets are needed and their advantages and disadvantages ► Learn the format of a style in a style sheet and the most popular styles ► Prepare a style sheet for an individual Web page or one for an entire site

Introduction ► Separate content from style ► HTML was created as a semantic language ► Characteristic felt as a limitation ► Back to the roots

Definition of Style Sheets ► Style Sheet  Group of Rules

Advantages of Style Sheets ► You can speed the formatting of your Web pages ► You can change the look of your entire Web site by changing only the style sheet’s styles ► Style sheets support formatting that straight HTML does not support ► Maintain the separation between content and style

CSS Syntax ► The CSS syntax is made up of three parts:  Selector  Property  Value selector {property: value}

CSS examples body {color: black} p {font-family: "sans serif"} p {text-align: center; color: red} p { text-align: center; color: black; font-family: arial } p { text-align: center; color: black; font-family: arial } h1, h2, h3, h4, h5, h6 { font-family: "Arial", "Verdana"; color: green } h1, h2, h3, h4, h5, h6 { font-family: "Arial", "Verdana"; color: green }

Including CSS ► Style sheets for an individual Web page  Inline Styles  Internal Style Sheet ► Style sheet for an entire site  Multiple Style Sheets

Inline Styles This is a paragraph

Internal Style Sheets h1 { font-size:16pt; color: blue} This headline is blue and 16 pt. This headline is in standard H1 style.

Example body {background-color=yellow} h1 { font-size:16pt; font-family: "Verdana"; text-align: center; text-spacing: 4px; color: blue} p { font-size:12pt; font-family: "Verdana"; color: green} A title Some text A second title Some other text

Example <!-- body {background-color=green} h1 { font-size:16pt; font-family: "Verdana"; text-align: center; text-spacing: 4px; color: blue} p { font-size:12pt; font-family: "Arial"; font-weight: bold; color: yellow} --> A title Some text A second title Some other text

Popular and most-visited sites ► ► They contain needed information or provide an enjoyable diversion ► ► They load quickly ► ► They retain a consistent look throughout the site

One style sheet for multiple Web pages ► You have only to create a text file with the styles inside ► Do not include tags ► Save the file with.css filename extension

body {background-color=green} h1 { font-size:16pt; font-family: "Verdana"; text-align: center; text-spacing: 4px; color: blue} p { font-size:12pt; font-family: "Arial"; font-weight: bold; color: yellow} <link rel=stylesheet type="text/css" href=style1.css> A title Some text A second title Some other text style1.css Lesson8-3.htmLesson8-3.htm

Examples of CSS usage …/demo_default.htm