Introduction to Web Authoring Ellen Cushman Class mtg. #14.

Slides:



Advertisements
Similar presentations
Table, List, Blocks, Inline Style
Advertisements

Intro to HTML. HTML HTML = HyperText Markup Language Used to define the content of a webpage HTML is made up of tags and attributes Content.
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.
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.
กระบวนวิชา 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.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Chapter 6 Web Typography
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
Introduction to Web Authoring Bill Hart-Davidson AIM: billhd30 Session 11
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
© 2012 Adobe Systems Incorporated. All Rights Reserved. LEARNING THE LANGUAGE OF THE WEB INTRODUCTION TO HTML AND CSS.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
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.
Cascading Style Sheets. Defines the presentation of one or more web pages Similar to a template Can control the appearance of an entire web site giving.
Website Development with Dreamweaver
I NTRO TO CSS IAT100 Spring I NTRO TO CSS Covered in this lesson: Overview What is CSS? Why to use CSS? CSS for Skinning your Website Structure.
1 WDMD 170 – UW Stevens Point WDMD 170 Internet Languages eLesson: CSS Introduction to Style Sheets (NON-audio version) © Dr. David C. Gibbs
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.
Using Cascading Style Sheet As you create more web pages, you may wish to impose a consistent look for all of your web pages or for group of related pages.
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.
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.
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.
CSS Basic (cascading style sheets)
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
IS1825: Developing Multimedia Applications for Business Lecture 1: Introduction to CSS Rob Gleasure
Stylin’ with CSS Monday October 8 th and Tuesday October 9 th.
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Introduction to Web Authoring Ellen Cushman Class mtg. #15.
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.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
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.
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
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.
Advanced Technical Writing 2006 Session #2. About ATW Projects… Typical practices a content person uses  Know available technologies and know the issues.
Introduction to Web Authoring Ellen Cushman Class mtg. #13.
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.
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.
WEB FOUNDATIONS CSS Overview. Outline  What is CSS  What does it do  Where are styles stored  Why use them  What is the cascade effect  CSS Syntax.
Introduction to web design discussing which languages is used for website designing
Introduction to Web Authoring
Website Design 3
Cascading Style Sheets - Building a stylesheet
Introduction to Web Authoring
Introduction to Web Authoring
Introduction to Cascading Style Sheets (CSS)
Introduction to Web Authoring
Introduction to Web Authoring Ellen Cushman cushmane
Cascading Style Sheets - Building a stylesheet
Introduction to Web Authoring
Presentation transcript:

Introduction to Web Authoring Ellen Cushman Class mtg. #14

Web Tech UA Schedule Dates of interest for the UA project: 2/11 - Introduction to assignment #3 & Teams 2/13 - UA Background & Principles 2/18 - Semantic Principles of User Assistance 2/21 - UA Storyboard 2/25 - UA Walkthrough 2/27 - Workshop Dreamweaver: CSS 3/3-3/5 - Spring Break 03/10 –Workshop:Dreamweaver CSS 03/12– Workshop:User Feedback & Revision Plans 03/17 – Final Versions Posted

Today’s Agenda | Next Class  Download a template for your personal site  Apply the template  Troubleshoot problems and adapt content to your template  Post your project logs  More fun with CSS & your UA sites  Develop the site architecture and import content.

Recall: What is CSS?  Multiple styles can be defined and used in individual HTML documents and across multiple HTML documents (fonts, spacing/placement, colors)  Browser follows an order of interpretation (aka, a cascade) of the style definitions  3 W3C CSS standards (CSS1 and CSS2 are current; CSS3 in development)

Style hierarchy  Style sheets work together in a cascading manner  Inline (Controls style on an element basis in the of htm) trumps embedded and linked  Embedded (controls style in the of htm) trumps linked  So use linked for global, generic types of things and keep to a minimum

Browser: Rendered View Page.html page.css In most cases, you will have two documents controlling how a page looks on the screen. One html file and one css file.

Linked style  Linked style uses same syntax as embedded style but is in a separate.css file that you link to from the HTML file requesting the style  Controls style more globally, spanning documents or an entire Web site

Saving Linked files  Note the folder/file architecture of the stylesheet you’ve downloaded.  Save the image folder to your Web on afs/p drive space. Make sure it has images and the.css file in it.  Do NOT put the index. Html into your afs folder!!!! You will overwrite all your other index pages.

Linked style 2  Open Dreamweaver>your personal page> recall the name/location the stylesheet you’ve downloaded>insert its name into the head in the code of your personal page.  HTML file using the linked style uses tag within the tag to link to it

Linked style 3  In Dreamweaver>open the css sheet in a new window  Here’s the style definition in the linked_style.css file h1 { font-family: Arial,sans-serif; font- size: 48pt; font-weight: bold }  Find other style codes using what you know about semantic structure

CSS Syntax CSS rules have the following structure: selector {property1 : value; property2 : value} P {font-family : sans-serif; font size : 9} With this rule applied, everything enclosed by a tag will display in sans-serif, 9pt. Remember all code has to be enclosed!

CSS will make your old HTML look uhhhhgly! CSS references objects – in most cases, chunks of text or images enclosed by tags – so you must define as an object any text that you want to reference in a style sheet. This means: You have to close those tags

CSS will make your old HTML look uhhhhgly, 2 It also means… You define object Classes, ID’s and learn their properties and value ranges You learn to use wildcard tags like and to define sub-sections of text within the body of a document You have to get good at designing documents…thinking ahead what will help both content developers and readers

CSS Classes…naming objects In CSS, a class refers to a particular category of a more general tag. Let’ say you wanted odd and even table cells to be different colors for easier scanning… In your css style sheet you would define the following code for table cells: TD {font-face : sans-serif; font-size : 12pt}.even {bgcolor : #FFFFFF}.odd {bgcolor : #CCCCCC}

CSS Classes…cont. In your HTML code for the table, you simply reference the class to invoke the style: display this text with a white background and this text with a grey background TD {font-face : sans-serif; font-size : 12pt}.even {background-color : #FFFFFF}.odd {background-color : #CCCCCC}

Getting more specific…ID’s You can set ID’s for specific kinds of objects too by giving them a unique ID name and set of display rules. Let’s say, for example, we want a table row that serves as a column header… it could be different than our odd or even classes of rows and even different from our default row look.

An ID rule Here, I have added a new ID to our TR rules Now, I can specify a row as a header: Red, sans-serif, 12pt type on a white background, por favor TR {font-face : sans-serif; font-size : 12pt}.even {background-color : #FFFFFF}.odd {background-color : #CCCCCC} #header {color : red}

& are your friends & are your friends and tags allow you define exceptions to the general rules of your body text…and they are helpful tools for document designers and web developers is usually used to designate styles for block elements that should stand apart from the body text…like callout quotes. Everything inside a tag takes on the attributes…and you can specify classes and ids for too!

More on More on The tag is usually used to change the display attributes of a short run of text or objects within a block-level element (such as a paragraph or table cell). I might use, for example, to define a look for code examples (like the one below) that is different than the body text… TR {font-face : sans-serif; font size : 12pt}

Seeing a document as a collection of objects… All of these tags, attributes, rules, selectors, declarations…what do they mean? They are all tools you use well ONLY if you can see a document as a collection of objects…so, let’s practice.

For Homework  apply the CSS to your personal page  adapt the color scheme, images, and organization of the css style sheet to suit your tastes  in your personal log: explain what you have changed and how.