Intro to CSS Christy. What is CSS?  Cascading Style Sheets  Separates content from presentation  Defines how to display HTML elements  Provides control.

Slides:



Advertisements
Similar presentations
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
Advertisements

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
Introducing CSS CIS 133 mashup Javascript, jQuery and XML 1.
CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
Introduction to CSS. What is CSS? A CSS (cascading style sheet) file allows you to separate your web sites (X)HTML content from it’s style. Use your (X)HTML.
Adding styles. Three alternatives HIT151 Web 'n' Net Web Page Basics /*stylesheet*/ h1,h2,h3 { font-family: verdana, arial, 'sans serif'; } p,table,li.
HyperText Markup Language (HTML) Uses plain text to add markup instructions to a file. If you can't produce it with a standard keyboard, it can't go into.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
1 Pengantar Teknologi Internet W03: CSS Cascading Style Sheets.
Recognizing the Benefits of Using CSS 1. The Evolution of CSS CSS was developed to standardize display information CSS was slow to be supported by browsers.
กระบวนวิชา 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.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
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.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
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.
Controlling Page Style: Cascading Style Sheets (CSS) References: 1.Wang, P.S & Katila, S. (2004). A Introduction to Web Design and Programming. CA: Thomson.
Cascading Style Sheet (CSS) Instructor: Dr. Fang (Daisy) Tang
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,
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
CSS – Presentation of Information. Types of Style Sheets External Embedded h1{color:red; font-family: Arial;} Inline Text is here.
Chapter 12 Cascading Style Sheets: Part II The Web Warrior Guide to Web Design Technologies.
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.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 7.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
CO1552 – Web Application Development Cascading Style Sheets.
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.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
CSS Basic (cascading style sheets)
Cascading Style Sheets. What is CSS? Short for Cascading Style Sheets, a new feature being added to HTML that gives more control over how pages are displayed.
WRT235: Writing in Electronic Environments Basic CSS.
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
Cascading Style Sheets Class 2, Lecture 2 Rachel A Ober
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Ch 10 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
CSS Tutorial 1 Introduction Syntax How to use style specifications. Styles.
Course created by Sarah Phillips BBCD Melbourne BAPDCOM Version 1 – April 2013.
October 21, Learn about Cascading Style Sheets LACUNY Web Management Roundtable October 21, 2005
Cascading Style Sheets
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.
Designing Web Pages The case for CSS. The Power of CSS css Zen Garden
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.
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.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
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
CSS.
Style Sheets.
4.01 Cascading Style Sheets
( Cascading style sheet )
CX Introduction to Web Programming
Cascading Style Sheets (CSS)
Intro to CSS CS 1150 Fall 2016.
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Website Design 3
Intro to CSS CS 1150 Spring 2017.
4.01 Cascading Style Sheets
Presentation transcript:

Intro to CSS Christy

What is CSS?  Cascading Style Sheets  Separates content from presentation  Defines how to display HTML elements  Provides control and flexibility  External style sheets are saved at.css files

Types of CSS  Inline:  Style applied to HTML elements individually  Has most control over the element  Internal:  Style is defined in the element  Defines the elements on the page it is defined  Overrides external, overridden by Inline  External:  Style defined in external file  HTML files link to css file  Overridden by Internal and Inline

Cascading Order 1.Browser default 2.External style sheet 3.Internal style sheet 4.Inline style sheet Number 4 has most control.

CSS Vocab  Rule: Single statement identifying what should be styled and how styles should be applied  Selector: Tells which section of the document the rules covers  Declaration: Property and value.  Property: Specific and definable style effects  Value: Defines how property should be set Rule: selector {property:value; property:value;} p {color:blue;}

CSS Syntax  Inline Content  Internal p {color:blue;}  External p {color:green; font:arial, sans-serif;}

Common CSS Properties color:#333333; background-color:#000000; front-family:verdana, geneva, sans-serif; font-size:22px; padding:0; border:thin #0f00f0 dotted; /* comments */

Colors  Color Names : 16 valid color names blueredyellowblack greenorangepurplenavy  Hex Values : 16mil colors, 150 supported by all browsers Combination of numbers and letter a-f #000000#FF0000#00FF00#0000FF #FFFF00#00FFFF#FF00FF#FFFFFF

Fonts  Use the font-family property  Group according to family  font-family: verdana, helvetica, arial, sans- serif;  font-family: times, “times new roman”, serif;  font-family: “courier new”, courier, monospace;  Put into quotes where there are spaces “times new roman”, ”courier new”  Sans-serif vs. Serif

Element  Defines a section in an HTML document  Typically used with block-elements to format them with style

Box Model  A block-level element can be manipulated using a combination of position, margin, border, padding height, and width declarations padding height width margin content border

Block-level and Inline Elements  Block-level elements  By default have a width of 100% of the page  Can be used as containers of elements – can contain inline elements and other block-level elements  CSS can define the width, height, padding and position on the page independent of the location in the code  EX:,,,,,  Inline elements  Located inside other elements – can only contain inline  CSS can define the coloring and font properties  EX:,,

Resources  W3Schools.com  YouTube Videos  Library Books  About.com  Wikipedia