CNIT 133 Interactive Web Pags – JavaScript and AJAX Review CSS.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
Getting a Taste of Cascading Stylesheets Steve Mooradian December 14, 2005.
CSS The basics { }. CSS Cascading Style Sheets - language used to – describe html appearance & formatting Style Sheet - file that describes – how html.
Part 2 Introduction to CSS. CSS Syntax – class selector 1 With the class selector you can define different styles for the same type of HTML element. You.
Cascading Style Sheets Understanding styles. The term cascading describe the capability of a local style to override a general style. CSS applies style.
Web Workshop: CSS Objectives: - “What is CSS?” - Structure of CSS - How to use CSS in your webpage.
XP 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
Working with Cascading Style Sheets. 2 Objectives Introducing Cascading Style Sheets Using Inline Styles Using Embedded Styles Using an External Style.
CNIT 133 Interactive Web Pags – JavaScript and AJAX Review HTML5.
Technologies for web publishing Ing. Václav Freylich Lecture 5.
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,
Pre-Module CSS BTM 395: Internet Programming. Cascading Style Sheets (CSS) Separation of structure from presentation CSS guide and tutorial –
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Cascading Style Sheets (CSS) Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Cascading Style Sheets Part 1 Library and Information Services, University of St Andrews.
XP Tutorial 7New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks.
STYLING THE WEBSITE - EXTERNAL CSS BY JORGE MARTINEZ.
Robert Vitolo CS430.  CSS (Cascading Style Sheets)  Purpose: To provide a consistent look and feel for a set of web pages To make it easy to update.
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
Jeanine
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.
Lesson 2 Adding more content to your web page. Thanks to Richard Hudnutt, Luella HS.
WRT235: Writing in Electronic Environments CSS Classes, IDs, divs.
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.
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.
Form Tag How to use Form Tag Something NEW ? PARAMETER Attribute NAME Specifies the name for a form To specify which form to submit with JavaScript, this.
Internet Web Publishing III. Intro to Cascading Style Sheets Patricia Roberts.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Tutorial 7.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Planning your site/organization on the Web Please use speaker notes for additional information!
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
CNIT 133 Interactive Web Pags – JavaScript and AJAX How to run JavaScript?
Cascading Style Sheets
Lesson 15: Cascading Style Sheets. Objectives Identify ways to apply Web page formatting with Cascading Style Sheets (CSS1 and CSS2) using various methods.
Cascading Style Sheets CSS. Source W3Schools
TOPIC II Dynamic HTML Prepared by: Nimcan Cabd Cali.
Cascading Style Sheets August 25-26, What is CSS? a means for web authors to separate the appearance of web pages from the content of web pages.
CNIT 132 – Week 4 Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of.
Cascading Style Sheets
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
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.
Practice for Chapter 3: Assume that you are a freelance web designer and need to create a website to promote your freelance company.
Introduction. MIS 5450 Behavioral Layer JavaScript and DOM Structural Layer XHTML Presentation Layer CSS Design Development Process.
IT Accessibility Committee Cascading Style Sheets Presented by Michael B. Short Prepared by The NYS Forum IT Accessibility Committee
XP Tutorial 7New Perspectives on HTML and XHTML, Comprehensive 1 Working with Cascading Style Sheets Creating a Style for Online Scrapbooks Tutorial 7.
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…
Css lectures. What is 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.
CM143- WEB CM143-WEB Page Layout live sites HTML Images User Considerations Planning Navigation CSS Architecture File Management Cascading Style Sheets.
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.
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
CSS Cascading Style Sheets
Week-12 (Lecture-1) Cascading Style Sheets (CSS): describe how documents are presented on screens. Types of Style Sheets: External Style Sheet - Define.
CSS Nick Sims.
Web Basics: HTML/CSS/JavaScript What are they?
Cascading Style Sheets
>> CSS Rules Selection
CX Introduction to Web Programming
Cascading Style Sheets - Building a stylesheet
Tutorial 3 Working with Cascading Style Sheets
Web Design and Development
HTML and CSS Basics.
Cascading Style Sheets - Building a stylesheet
Presentation transcript:

CNIT 133 Interactive Web Pags – JavaScript and AJAX Review CSS

Agenda My Web Site: (download syllabus, class notes). Cascading Style Sheet (CSS) Inline CSS Embedded CSS External CSS CSS1 CSS2 CSS3

Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading Style Sheets, or CSS, is a style sheet language used on the Web.  CSS Statement selector { Property : value ; } p, address { color : red ; }  CSS Comments /* CSS comments */  CSS specifications are maintained by the World Wide Web Consortium (W3C)  Three versions of CSS exist: CSS1, CSS2, and CSS3

3 Ways to Apply CSS Three ways to apply a style to an HTML or XHTML document:  Inline Styles  Embedded Styles  External Styles

CSS - Inline Styles Inline Styles  Inline styles are easy to use and interpret because they are applied directly to the elements they affect. <element style="style1: value1; style2: value2; style3: value3;…”> Paragraph 1

CSS – Embedded Styles Embed Styles  You can embed style definitions in a document head using the following form: style declarations  Where style declarations are the declarations of the different styles to be applied to the document. p { background : blue; color : white; }

CSS – External Styles Because an embedded style sheet only applies to the content of a single html file, you need to place a style declaration in an external style sheet to apply to the headings in the rest of the Web site. An external style sheet is a text file that contains style declarations.  It can be linked to any page in the site, allowing the same style declaration to be applied to the entire site

CSS – External Styles Use the link element to link a Web page to an external style sheet. <link rel="stylesheet" type="text/css" href="../style/css_external.css" /> You can import the content of one style sheet into url(../style/css_external.css);

CSS id/class CSS id: Uniquely identify an object in HTML (used only once in a document) #id_name { property: value; } #head { text-align: center; } Paragraph data CSS class: make a group of elements with a common identifier..class_name { property: value; }.title { color: blue; font-style: italic; } Header one title Header two title

CSS1 CSS1 introduced styles for the following document features:  font properties  text properties  color properties  background properties

CSS1 – font properties font properties: font-family: arial, verdana, 'times new roman'; font-style: normal (default)/italic; font-variant: normal/small-caps; font-weight: normal/bold/bolder/lighter/ (100 increment with 400 as normal); font-size: xx-small/x-small/small/medium/large/x-large/xx- large/larger/smaller/5%/length [pt/in/mm/cm/pc/em(horizontal size of normal m)/ex (vertical size of normal x)]; font shorthand property: font: font-style font-variant font-weight font-size/line-length font-family;

CSS1 – text properties text properties: background: rgb(255,0,0)/#ff0000/red; color: rgb(255,0,0)/#ff0000/red; direction: ltr(default)/rtl; text-decoration: none/underline/overline/line-through; text-transform: none/capitalize/uppercase/lowercase; text-align: left/right/center/justify; text-indent: %/length; letter-spacing: normal/length; word-spacing: normal/length; line-height: normal/%/length;

CSS1 – display or visibility property display property: display: inline(default)/block/none visibility property: visibility: visible(default)/hidden NOTE: Hiding an element can be done by setting the display property to "none" or the visibility property to "hidden". However, notice that these two methods produce different results: visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout.

CSS1 – list-style properties list-style properties: list-style-type: disk/circle/square/decimal/lower- roman/upper-roman/lower-alpha/upper- alpha/none; list-style-position: outside(default)/inside; list-style-image: url('dir/pic.gif')/none; list-style shorthand property: list-style: type position image;

CSS1 – background properties background properties: background-color: rgb(255,0,0)/#ff0000/red; background-image: none(default)/url('dir/pic.gif'); [NOTE: By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally.] background-position: left top/left center/left bottom/right top/right center/right bottom/center top/center center/center bottom; [NOTE: If you only specify one keyword, the other value will be "center“.] background-repeat: repeat(default)/no-repeat; background-attachment: scroll(default)/fixed;

Other CSS1 properties border properties: margin properties: padding properties:

CSS2 CSS2 introduced styles for the following document features:  Positioning  Visual Formatting  Media Types  Interfaces

CSS2 – position properties position properties: position: static(default)/absolute/relative; [static displays in order as they appear in the document flow; absolute positions relative to its first positioned (not static); relative positions relative to its normal position.] left: length/%/px; top: length/%/px; width: length; height: length; visibility: visible(default)/hidden; z-index: positive number (highest number closer to the screen); cursor: url('dir/pic.gif')/crosshair/default/pointer/move/wait/help;

CSS3 CSS3 introduced styles for the following document features:  User Interfaces  Accessibility  Columnar layout  International Features  Mobile Devices  Scalable Vector Graphics

CSS Pseudo-class (Rollover effect) Anchor (link) has 4 states:  link  visited  hover  active Pseudo-class definition: a:state_name { property: value; } a:link { color: red; } a:visited { color: green; } a:hover { color: blue; } a: active { color: yellow; } NOTE: must be defined in the correct orders.