Creating Styles and Style Sheets.  CSS styles don’t communicate in nice clear English, they have their own language.  P { color: red; font-size: 1.5.

Slides:



Advertisements
Similar presentations
Intro To Cascading Style Sheets By Mario Yannakakis.
Advertisements

CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Learn about Cascading Style Sheets LACUNY Web Management Roundtable October 21, 2005
Computer Applications II.  A Style Sheet is a web page development tool that allows the developer to make global changes to a web page (or 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.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
It’s All About Style The Basics of Style Sheets Presented by Barry Diehl.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
Chapter 8 Creating Style Sheets.
XHTML & CSS 2 By Trevor Adams. Last week XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Chapter 6 Web Typography
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Cascading Style Sheets. Slide 2 Lecture Overview Overview of Cascading Style Sheets (CSS) Ways to declare a CSS CSS formatting capabilities New features.
HCI 201 Week 6 Client Side Image Maps Introduction to CSS.
Using Cascading Style Sheets CSS Basics. Goals Understand basic syntax of Cascading Style Sheets (CSS) Understand basic syntax of Cascading Style Sheets.
Using Cascading Style Sheets CSS Structure. Goals Understand how contextual, class and ID selectors work Understand how contextual, class and ID selectors.
4.01 Cascading Style Sheets
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.
Dreamweaver MX. 2 Creating External Style Sheets-1 (p. 400) n A style is a group of formatting attributes identified by a single name. n An ________ style.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
HTML & CSS.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
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.
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.
Today’s objectives  Presentational | Inline | Block | Validate  CSS | Rules | Declarations.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Cascading Style Sheets Tom Osman. Keep the content of a webpage separate from the formatting of the page. Structure (of content)  Headings  Sub headings.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
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.
 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.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
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.
Introduction to Cascading Style-sheets (CSS) Basharat Mahm ood, Department of Computer Science, CIIT,Islamabad, Pakistan 1.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
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.
October 21, Learn about Cascading Style Sheets LACUNY Web Management Roundtable October 21, 2005
Cascading Style Sheets CSS.  Standard defined by the W3C  CSS1 (released 1996) 50 properties  CSS2 (released 1998) 150 properties (positioning)  CSS3.
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
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.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
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 THE MISSING MANUAL Introduction. Benefits of CSS Style sheets offer more formatting choices than are offered in straight HTML  EXAMPLE: When you.
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.
CSS Cascading Style Sheets *referenced from
CSS FOUNDATIONS IN-DEPTH The nitty-gritty of css...
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.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, Third Edition.
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.
CSS Cascading Style Sheets
Style Sheets.
Using Cascading Style Sheets Module B: CSS Structure
Intro to CSS CS 1150 Fall 2016.
Cascading Style Sheets - Building a stylesheet
Intro to CSS CS 1150 Spring 2017.
Some Stuff You Need to Know
Tutorial 3 Working with Cascading Style Sheets
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Cascading Style Sheets - Building a stylesheet
External Style Sheets.
One Set of Styles Connected to As Many Pages as You Want!!!
Presentation transcript:

Creating Styles and Style Sheets

 CSS styles don’t communicate in nice clear English, they have their own language.  P { color: red; font-size: 1.5 em;} This code says, “make all text in all paragraphs marked with a red and 1.5 ems tall.” An em is a unit of measure that is based on a browser’s normal text size. Using an em tag as opposed to a px tag adjusts the size of text based on the size of text the user has specified for her/his computer.

Selector Declaration Declaration Property Value Property Value Declaration Block color: red;Font-size: 1.5em; p

 A single style will not transform a Web page into a work of art  To infuse your web site with great design, you will need many different styles  A collection of CSS styles comprises a style sheet.  Style sheets can be one of two types— internal or external

 External style sheets are the way to go.  Easier to build a web page  Contain all of your style information  Just one line of code to attach the sheet to your web page  Easier to edit  Help web pages open faster Downloads your style document to a user’s computer or cache

 A collection of styles that is part of the web page’s code  Always appears between the opening and closing HTML tags in the web page’s section  EXAMPLE:  H1 { color: #FF7643; font-face: Arial;  }

 The tag is HTML, not CSS—tells the browser that the information contained within the tags is CSS code.  Internal style sheets are easy to add to a web page  Provide immediate visual boost to your HTML  Style not the most efficient method of design  Especially if web page is comprised of many pages.  More of a hassle when you want to update the look of the site.

 HTML:   XHTML:   The Difference?  How the tag is ended

 url (css/global.css);   Unlike the is part of the CSS language and has some definite un- HTML-like qualities.  Use url, not href  Enclose the path in parentheses

 Chapter 2—Tutorial  Page 39 in your textbook  Then Assignment 1 in Blackboard  Don’t forget to validate both your HTML and your CSS  Upload your documents to your Assignment 01 folder on the SWS