What is CSS? A set of style rules that tell the web browser how to present a web page or document. – In earlier versions of HTML, style characteristics,

Slides:



Advertisements
Similar presentations
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
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 External Style.
Cascading Style Sheets
Cascading Style Sheets Understanding styles. The term cascading describe the capability of a local style to override a general style. CSS applies style.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
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.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
Cascading Style Sheet. What is CSS? CSS stands for Cascading Style Sheets. CSS are a series of instruction that specify how markup elements should appear.
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
 ult.htm ult.htm  This website illustrates the use of CCS (style sheets)
Different ways to implement CSS. There are four different ways to use CSS in your web pages: – Inline CSS – Embedded CSS/Internal CSS – Linked CSS/External.
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) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
The Characteristics of CSS
CSS Cascading Style Sheets By Garrett Garman. CSS Why use Style Sheets? Separates Appearance and Structure Modularity Quick and Easy changes Flexibility.
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
INTRODUCTION TO HTML5 CSS Styles. Understanding Style Sheets  HTML5 enables you to define many different types of content on a web page, including headings,
INTERNAL CSS Casey Ames Different types of CSS There are three different types of CSS: ◦ External CSS ◦ Internal CSS ◦ Inline CSS In this presentation.
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.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
The format is text files, with.htm or.html extension. Hard returns, tabs, and extra spaces are ignored. DO NOT use spaces in file names. File names ARE.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
Cascading Style Sheets Chapter Four. What are they? A set of style rules that tell the web browser how to present a web page or document. Cascading Style.
CO1552 – Web Application Development Cascading Style Sheets.
INTRODUCTION TO CSS. OBJECTIVES: D EFINE WHAT CSS IS. K NOW THE HISTORY OF CSS. K NOW THE REASON WHY CSS IS USED. CSS SYNTAX. CSS ID AND CLASS.
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.
Cascading Style Sheets: Got Branding?. What is CSS? CSS = Cascading Style Sheets Styles define how HTML (web) elements are displayed. One (or more) style.
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.
Cascading Style Sheets in.NET Lilian Kiilu, Client/Server & Web Applications, Coms 463/563, Section 1pm, Fall 2005, November 16 th 2005.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Professor Waterman Cascading Style Sheets (CSS) is a language that works with HTML documents to define the way content is presented. The presentation.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Cascading Style Sheets Creating a Uniform Site. Style Sheets  Style sheets are used for conformity on a web page or web site.  Style sheets eliminate.
Cascading Style Sheets
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
Cascading Style Sheets
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
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.
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.
Style Sheets. Coding Style Sheets  Style sheets use RULES to create the style  A selector (a tag or user-defined style name)  and then declarations.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
Basic Webpage Design Cascading Style Sheet (CSS).
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, Third Edition.
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.
Creating Web Documents CSS examples (do more later) Lab/Homework: Read chapters 15 & 16. Work on Project 3, do postings.
4.01 Cascading Style Sheets
Madam Hazwani binti Rahmat
Website Design 3
Web Programming– UFCFB Lecture 11
What are Cascading Stylesheets (CSS)?
Web Design and Development
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Chapter 6 Introducing Cascading Style Sheets
Made By : Lavish Chauhan & Abhay Verma
4.01 Cascading Style Sheets
Presentation transcript:

What is CSS? A set of style rules that tell the web browser how to present a web page or document. – In earlier versions of HTML, style characteristics, such as fonts, backgrounds, and other aspects of the look of the webpage were controlled from within the page itself. – The evolution of cascading style sheets allowed for the rules of formatting and presentation to be done in a different manner than before. bscshelp.com

Top 10 Reasons for Using CSS 1.Faster download times Reduction of file size is about 50% less than a Web page built with traditional Web design methods. 2.Shorter development time Easily tweak the design of a thousand-page site with just a few edits of one CSS file 3.It's easy to write You can create and edit CSS as easily as you can hand code HTML 4 Easier for teams to maintain (and individuals) bscshelp.com

Top 10 Reasons for Using CSS 5.Greater control over the typography in a Web page CSS's ability to control typography better 6.Improvements in accessibility Using CSS effectively means structuring content with HTML elements e.g.,, etc. 7.Print designs as well as Web page designs Create presentations not only for Web browsers, but also for other media like print or PowerPoint-like presentations. 8.Better control over the placement of elements in Web page bscshelp.com

Top 10 Reasons for Using CSS 9.The design of Web pages is separated from the content By keeping the design in separate files linked to the HTML pages, you reduce the likelihood of your page designs falling apart over time as different contributors add to the Web page 10.Better search engine rankings With only HTML used for structuring content in a Web document instead of rigging tags for design, search engines will spider your Web page effectively, and more likely give you a higher page ranking. bscshelp.com

What is CSS? CONTENT Style Web page bscshelp.com

What is CSS? CONTENT Style Web page Essentially, what we are doing when we use cascading style sheets, it is separating the content of the page from the style or formatting of the page. This has advantages, in that once the style sheet is loaded locally, all other pages that are based on that style sheet will load quicker. The reason being that the stylistic markup for defining the appearance of the page is loaded separately from the content of the page. bscshelp.com

What is CSS? CSS Physical layout Headings Body Text Web page bscshelp.com

What is CSS? One cascading style sheet can be used to set the style and format for many different web pages. The biggest advantage is that if the web author wants to make whole changes to a website, the style editing takes place in one location (the CSS), yet is applied to all related locations (the pages). Imagine a large site with hundreds of pages. To change even on item on each page, without a CSS, would require editing of each of the hundreds of pages. In contract, a CSS based website would require the editing of only one file – the CSS. bscshelp.com

Types of CSS External Internal/Embedded Inline bscshelp.com

External Allows for using style sheets from other sources Connection made via the LINK tag Use the optional TYPE attribute to specify a media type Two Methods Linking a CSS file: (Recommended) Importing a CSS file: (Not supported in older url(path/to/cssdoc.css); bscshelp.com

Internal/Embedded Style characteristics are embedded in the HEAD section of the webpage Perhaps best used when a single page requires a unique style sheet hr { color: navy} body {margin-left: 20px} bscshelp.com

Inline Least flexible Requires each element to be tagged if you want them to appear differently Looses the advantage of using CSS This is a paragraph bscshelp.com

Using multiple sheets You can use multiple sheets to define the style of your document Internal styles will override external styles, if they are duplicated bscshelp.com

Using multiple sheets h3 {color: red; text-align: right; font-size: 8pt} (external CSS) h3 {text-align: center; font-size: 20pt} (internal CSS) will yield bscshelp.com

Using multiple sheets h3 {color: red; text-align: right; font-size: 8pt} (external CSS) h3 {text-align: center; font-size: 20pt} (internal CSS) will yield h3 {color: red; text-align: center; font-size: 20pt } bscshelp.com

Understanding the Cascade Cascading – Determining rule weight by order Based on order of rule within style sheet – Those listed later take precedence over those listed earlier in the style sheet bscshelp.com

Understanding the Cascade Inheritance – Based on hierarchical structure of documents CSS rules inherit from parent elements to child elements: – thus elements will inherit style rules from elements unless a style rule is specifically set for the element bscshelp.com