HTML with Style!. What is a Style Sheet? CSS? Style Sheet CSSCascading Style Sheets A “language” for defining style rules. Rules that tell the browser.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
Advertisements

Table, List, Blocks, Inline Style
HTML and CSS. HTML Hyper Text Markup Language Tells browser how to display text and images.
Introduction to HTML & CSS
CSS-Formatting Review Cascading Style Sheets addstyle to your HTML web pages.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
Cascading Style Sheets
Today CSS HTML A project.
Making Things Look Nice: Visual Appearance and CSS CMPT 281.
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 normally control the html elements. Three Ways to Insert CSS There are three ways of inserting a style sheet: External style sheet Internal style.
AD Intermediate Computer Graphics | spring 2008 | Daria Tsoupikova | School of Art and Design | UIC CSS Cascading Style Sheets.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic CSS: Cascading Style Sheets.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
Cascading Style Sheets Controlling the Display Of Web Content.
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.
1 Creating Web Pages Part 3. 2 CASCADING STYLE SHEETS (CSS): What exactly are they? Set of rules that define how a web browser should display an HTML.
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,
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Dreamweaver -- CSS. Dreamweaver -- MX New icons are added in MX Most of the features commonly used in web design, and are same as FrontPage. New feature.
CSS – Presentation of Information. Types of Style Sheets External Embedded h1{color:red; font-family: Arial;} Inline Text is here.
Learning HTML. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Class – specifies a class.
1 Cascading Style Sheets (CSS) Part 2. 2 The Sources of Style Sheets.
Cascading Style Sheets by Pavlovic Nenad by. Presentation Contents  What is CSS?  Why CSS?  Types of Style Sheets  Style Sheets Syntax  Box Formatting.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Cascading Style Sheets CSS by Pavlovic Nenad by. 2Cascading Style Sheets Presentation Contents What are CSS? What are CSS? History of CSS History of CSS.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
CSS Basic (cascading style sheets)
Introduction to CSS. What is CSS?  Cascading Style Sheets  Used for styling HTML  Also important in javascript and jquery for selectors  External.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 7.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Ch 10 HTML and CSS Web Standards Solutions A Web Standardistas’ Approach.
ECA225 Applied Interactive Programming Cascading Style Sheets, pt 1 ECA 225 Applied Online Programming.
CSS  Basic rules of CSS  Pseudo-class of the A tag  Apply CSS to alter an unordered list Cascading Style Sheets (CSS)
ACM 262 INTRODUCTION TO WEB DESIGN Week-7 ACM 262 Course Notes.
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.
CIS 228 The Internet 10/18/11 Grouping XHTML. CSS Selectors Rule: selector-group { property-declaration* } Selector-group: selector *, Selector: simple-selector.
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
ECA 228 Internet/Intranet Design I Cascading Style Sheets.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
Cascading Style Sheets - CSS December 20, 2008 NTPCUG Expression Web SIG.
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.
Working with Cascading Style Sheets
Google fonts CSS box model
CSS Layouts: Grouping Elements
CSS: Cascading Style Sheets
>> Introduction to CSS
>> CSS Rules Selection
Cascading Style Sheets
Box model.
Intro to CSS CS 1150 Fall 2016.
CSS Intro.
Cascading Style Sheets
CSS.
Intro to CSS CS 1150 Spring 2017.
Styles and the Box Model
CSS Borders and Margins.
CSS Box Model.
Software Engineering for Internet Applications
DynamicHTML Cascading Style Sheet Internet Technology.
DynamicHTML Cascading Style Sheet Internet Technology.
Web Design and Development
Box Model.
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.
HTML / CSS Mai Moustafa Senior Web Designer eSpace eSpace.
CSS and Class Tools.
Web Programming and Design
Presentation transcript:

HTML with Style!

What is a Style Sheet? CSS? Style Sheet CSSCascading Style Sheets A “language” for defining style rules. Rules that tell the browser how to present information.

Style Assignment Syntax Target propertyvalueproperty2value2 p { background: YELLOW }

Identifying Targets 1 Selector Class IDDefines a style for a single element based on the element’s ID. (Avoid) Defines a style for all elements of a given class. Defines a style for all elements of a given type (e.g., all paragraphs).

Examples Selector Class ID Class ID

Identifying Targets 2 ContextualDefines a style based on the order of selectors, going from right to left. p em strong { background: YELLOW } p em { background: YELLOW }

Examples

Margin Basic Property Groups Font ₪Ω€ Text T he Background Padding The contents go here! Border Box Model

Internal Style Sheets

Local (Inline) Styles

External Style Sheets

CSS Order Matters

Why Style Sheets? +Flexible, powerful presentation. +Control – author, user, browser. +Clearly separates content and presentation. +Transition to future technologies. –Can get confusing (e.g., conflicts)

div And span Both group information. Great for formatting all sorts of elements! div –Block level. span –Inline.

We have just skimmed the surface of CSS! Feel free to explore. By the way, CSS3 is under development right now.