Cascading Style Sheets: Got Branding?. What is CSS? CSS = Cascading Style Sheets Styles define how HTML (web) elements are displayed. One (or more) style.

Slides:



Advertisements
Similar presentations
1 © Netskills Quality Internet Training, University of Newcastle Introducing Cascading Style Sheets © Netskills, Quality Internet.
Advertisements

HTML Basics Customizing your site using the basics of HTML.
Introduction to HTML & CSS
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.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
Cascading Style Sheets
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.
CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
Introduction to CSS.
MSc. Publishing on WWW Tables and Style Sheets. Tables Tables are used to: Organize and display tabular data To create a layout for web pages.
The.htm/.html Mystery When saving the template files in Internet Explorer, they will be named.htm by default. To be consistent with how the code was written.
4.01 Cascading Style Sheets
INSTRUCTIONAL SUPPORT SERVICES (ISS) SHORT COURSE, FALL 2012 UMSL Introduction to Web Page Design.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
Review HTML  What is HTML?  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
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.
IT Introduction to Website Development Welcome!
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
 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.
Chapter 3 Working with Text and Cascading Style Sheets.
HTML Web Authoring Tonya L. DeZarn Janice Thompson Juana Wallace.
The Characteristics of CSS
INTRODUCTION TO HTML5 CSS Styles. Understanding Style Sheets  HTML5 enables you to define many different types of content on a web page, including headings,
Styles with Cascading Style Sheets (CSS) Web Design – Section 4-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
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.
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 Basic (cascading style sheets)
 cascade Style Sheets (CSS) is a mark-up language that was first proposed in 1994 by Håkon Wium Lie. CSS works in conjunction with HTML to greatly increase.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: – The head content – The body Creating Head Content and Setting Page.
Essentials of HTML Class 4 Instructor: Jeanne Hart
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
© 2011 Delmar, Cengage Learning Chapter 8 Using Styles and Design Style Sheets for Design.
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.
© 2011 Delmar, Cengage Learning Chapter 3 Working with Text and Cascading Style Sheets.
DIV, Span, CSS.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Cascading Style Sheets CSS. Source W3Schools
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
Cascading Style Sheets
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
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.
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
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,
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 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.
4.01 Cascading Style Sheets
Madam Hazwani binti Rahmat
CX Introduction to Web Programming
Cascading Style Sheets (CSS)
CASCADING STYLE SHEET CSS.
What are Cascading Stylesheets (CSS)?
Web Design and Development
Exercise 9 Skills You create and use styles to create formatting rules that can easily by applied to other pages in the Web site. You can create internal.
Made By : Lavish Chauhan & Abhay Verma
4.01 Cascading Style Sheets
Presentation transcript:

Cascading Style Sheets: Got Branding?

What is CSS? CSS = Cascading Style Sheets Styles define how HTML (web) elements are displayed. One (or more) style sheets can be applied to a site  One change can affect the entire look and feel of the site!

CSS: A Brief History HTML was never intended to contain tags for formatting. However, in HTML 3.2, tags such as and were introduced to aid in formatting. This caused major headaches for large sites, as even simple changes had to be applied across all pages: A long and expensive process.

CSS: A Brief History (cont.) CSS was introduced in HTML 4.0, which allowed all formatting to be stored in an external file that could be used by the entire site. Thus a single change to that file can effect your entire site. Changing fonts, colors and layouts are now quick and easy

So, What Does CSS Do? Controls look and feel of the site:  Colors (fonts, backgrounds, links, etc)  Fonts (sizes, attributes, faces)  Images (borders, etc)  Positions (margins, alignments, etc)\  Much more, too expansive to list  In other words: pretty much everything related to layout or look and feel

How About an Easy Example? Warning: Code ahead!.para1 { color:red; } Hello World! = Hello World!

A Short Example o_default.htm o_default.htm Click on each Style to view how quickly you can change the look and feel.

Using CSS Three ways to use CSS:  External style sheet  Internal style sheet  Inline style

Using CSS (cont.) External Style Sheet  Link to external document  One change will affect all pages “calling” this style sheet

Using CSS (cont.) Internal Style Sheet  Used when one document or page needs it’s own style. Changes will only affect that page hr {color:sienna;} p {margin-left:20px;} body {background-image:url("images/back40.gif");}

Using CSS (cont.) Inline Style  Define style on tag itself.  Best to avoid if possible, as you lose advantages of CSS This is a paragraph.

What does ‘Cascading’ mean? Multiple style sheets can be applied, and the changes “cascade” into one style sheet that is applied: Internal Sheet: h3 { text-align:right; font-size:20pt; } External Sheet: h3 { color:red; text-align:left; font-size:8pt; } Result: color:red; text-align:right; font-size:20pt;

Order Styles are Applied Multiple styles (when defined) will be applied in the following order:  Browser default  External Style Sheet(s) in the order they are defined  Internal Style Sheets  Inline Styles This means inline styles will override all else

A Much Longer Example CSSZenGarden: le=none le=none  This is a basic HTML page with no styles assigned.  By applying a different CSS (under the “Select a Design” section), you can make the same content appear a multitude of different ways.

CSS and Branding CSS Allows you to:  Brand your site according to today’s guidelines  Easily and quickly keep your site branded as conditions change without the need to edit each page. One simple change in one file can be applied across your entire site

Why is it Important? Provides consistency Easy maintenance Easier for “non-techies” to maintain the site Browser compatibility: Prevents use of atypical styles that may not show correctly in some browsers

Why is it Important? (cont.) Viewing options: It is becoming increasingly important to offer websites on different media (such as mobile browsers) Bandwidth and speed reduction: smaller file sizes, caching of CSS Search Engines: Site becomes more “content” and less “code”

Some Tools for Developers Major browsers allow real-time editing (but will not commit changes) CSS and HTML:  Firebug for Firefox (add-in)  Internet Explorer 8 Developer Tools  Chrome’s “Inspect Element” feature

More Resources CSS free self-paced course at W3Schools  o.asp o.asp Firebug for Firefox:  CSS Validator: 

Questions? Mark Proper Technical Project Specialist CCAP IT