Dynamic HTML.

Slides:



Advertisements
Similar presentations
1 © Netskills Quality Internet Training, University of Newcastle Introducing Cascading Style Sheets © Netskills, Quality Internet.
Advertisements

HIGH LEVEL OVERVIEW: CSS CSS SYNTAX CONSISTS OF A SET OF RULES THAT HAVE 3 PARTS: A SELECTOR, A PROPERTY, AND A VALUE. IT’S NOT NECESSARY TO REMEMBER THIS.
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: Basics I450 Technology Seminar Copyright 2003, Matt Hottell.
Cascading Style Sheets (CSS) “Styles” for short. Pg. 418.
Cascading Style Sheets
Today CSS HTML A project.
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.
It’s All About Style The Basics of Style Sheets Presented by Barry Diehl.
Introduction to CSS.
Cascading Style Sheets By: Valerie Kuna. What are Cascading Style Sheets? Cascading Style Sheets (CSS) are a standard for specifying the presentation.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
กระบวนวิชา 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.
Chapter 8 Creating Style Sheets.
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.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
MSc. Publishing on WWW Tables and Style Sheets. Tables Tables are used to: Organize and display tabular data To create a layout for web pages.
1 Dynamic HTML and Cascading Style Sheets (CSS) Dynamic HTML and Cascading Style Sheets (CSS) Electronic Commerce Prof. Sheizaf Rafaeli.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Cascading Style Sheets (CSS) 1.  What is CSS?  Why CSS?  How to write a CSS? 2.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
Cascading Style Sheet (CSS)
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.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
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.
DHTML. What is it? Dynamic HTML. Not a standard unlike HTML or Java It is a term applied by both Netscape and Microsoft to a collection of technologies.
1 Working with Cascading Style Sheet (CSS). 2 Cascading Style Sheets (CSS)  a style defines the appearance of a document element. o E.g., font size,
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
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 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). CSS CSS – Cascading Style Sheets – Cascade because of the way CSS rules can stack on top of each other. Allows you to add.
Introduction to CSS: Selectors
The Basics of Style Sheets Presented by Barry Diehl
Web Basics: HTML/CSS/JavaScript What are they?
CS3220 Web and Internet Programming CSS Basics
4.01 Cascading Style Sheets
Introduction to CSS.
Cascading Style Sheets
Cascading Style Sheets
Introduction to the Internet
IS 360 Declaring CSS Styles
Madam Hazwani binti Rahmat
>> CSS Rules Selection
CX Introduction to Web Programming
Web Developer & Design Foundations with XHTML
Cascading Style Sheet (CSS)
Web Development & Design Foundations with HTML5
Cascading Style Sheets
CASCADING STYLE SHEET CSS.
Introduction to CSS.
Introduction to Web programming
Software Engineering for Internet Applications
DynamicHTML Cascading Style Sheet Internet Technology.
Stylin’ with CSS.
Introduction to Cascading Style Sheets (CSS)
What are Cascading Stylesheets (CSS)?
The Internet 10/6/11 Cascading Style Sheets
DynamicHTML Cascading Style Sheet Internet Technology.
Tutorial 3 Working with Cascading Style Sheets
CS3220 Web and Internet Programming CSS Basics
Part 1: Cascading Style Sheets
CS3220 Web and Internet Programming CSS Basics
Made By : Lavish Chauhan & Abhay Verma
Stylin’ with CSS.
4.01 Cascading Style Sheets
Stylin’ with CSS.
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Dynamic HTML

Dynamic HTML Netscape’s (DevEdge) guide to DHTML: “Call us crazy, but we thought that the next big thing in HTML wasn't going to be a new tag. “ Netscape’s (DevEdge) guide to DHTML: http://developer.netscape.com/library/documentation/communicator/dynhtml/index.htm Microsoft’s Dynamic HTML Object Model: http://msdn.microsoft.com/msdn-online/workshop/author/dom/domoverview.asp http://msdn.microsoft.com/workshop/author/om/doc_object.asp

DHTML: Dynamic HTML DHTML - still more a promise than a reality But certainly the shape of things to come a group of technologies that make Web pages more like miniature software applications. If ever there was a Bleeding Edge

Dynamic HTML Cross-Browser techniques are the holy grail WebMonkey’s tutorial, Nadav Savio, reconciles the two at: http://www.hotwired.com/webmonkey/html/97/31/index2a.html See C-Net builder’s tutorial at: http://www.cnet.com/Content/Builder/Authoring/Dhtml/?st.cn.fd.acol.bl See http://www.insidedhtml.com (book and website) And especially the 10K demos!

DHTML components DOM: the (DYNAMIC) Document Object Model CSS: Cascading Style Sheets Scripting languages: (like Javascript, Active-X, asp). And, depending on the browser, positioning, downloading fonts, streaming content, “behaviors”, image transition, animated backgrounds, etc.

DOM: The Document object Model defines all items on a Web page as objects that can be manipulated. Otherwise, those elements are set, defined solely by the browser. For example, the DOM makes it possible to identify individual letters on a page as separate objects, and then to assign specific qualities, such as color or size, to each letter. In a sense, every letter becomes a tiny Web page.

Cascading Style Sheets (CSS) Cascading Style Sheets are a simple way to control style without compromising structure. They separate the style (visual design elements) from the structure of documents. CSS is a form of HTML mark-up that provides web designers with greater control over typography and spacing between elements on a page.

Cascading Style Sheets (CSS) Changing the style can affect an entire document. Style sheets can be shared by multiple documents. So changing a style can affect an entire website WHAT ABOUT BROWSER COMPATIBILITY? CSS support is provided in Internet Explorer 4+ and Netscape Navigator 4+. However, some annoying browser inconsistencies continue

Cascading Style Sheets (CSS) CSS overrides the browser's default settings WHAT DOES CSS LOOK LIKE? The basic template for CSS code looks like this: Tag: {Property: value; Property2: value2} Tag - The element that will be affected Property - What part of the selector will be affected Value - How it will be affected

Cascading Style Sheets (CSS) CSS overrides the browser's default settings A CSS declaration has two parts: a property (”font-size” or “color”) and a value ( “10pt” or "red"). The basic syntax of a rule selector {property 1: value 1; property 2: value: 2} Examples: P {font-size: 10pt; color: red} H1 {FONT-SIZE: 9pt; FONT-WEIGHT: bold} Electronic Commerce; Prof. Sheizaf Rafaeli

CSS (3) Linked Global Local style sheet definitions. Local (inline) definitions replace the <FONT> definitions for typeface, font size, color and margins, etc. Global (embedded) declarations are defined within <STYLE></STYLE> pairs, usually in header. Linked (external) stylesheets use separate .css files, and link to them using : <link rel="stylesheet" href="style.css" type="text/css"> Electronic Commerce; Prof. Sheizaf Rafaeli

Types of CSS Inline: <h3 style="font-weight: bold">this will be bold</h3> Embedded : <HEAD> <STYLE TYPE="text/css"> <!- - Tag: {Property: value; Property2: value2} - -> </STYLE> </HEAD> Electronic Commerce; Prof. Sheizaf Rafaeli

Types of CSS External: <HEAD> <LINK REL="STYLESHEET" HREF="/PATH/SHEET.CSS TYPE="TEXT/CSS"> </HEAD> The SHEET.CSS file would then contain all the style-sheet code which would be applied to any page that calls it using the code above.

Short, sweet example REMOVE UNDERLINES - A Complete Style Sheet Do you want to remove underlines from links on your site? Below is a short and sweet style-sheet that will do just that, just copy and paste it between the <head></head> tags on your site: <STYLE TYPE="text/css"> <!- - a { text-decoration: none} - -> </STYLE> Electronic Commerce; Prof. Sheizaf Rafaeli

Full CSS example <html> <style type="text/css"> <!-- h4 {font: 17pt Arial,Helvetica"; font-weight: bold; color: maroon} h2 {font: 15pt "Courier"; font-weight: bold; color: blue} p {font: 12pt "Arial,Helvetica"; color: black} --> </style> <body> ... </body> </html> This is an example of the middle level (“global” or “embedded” form of CSS. Note how style code is hidden (as in Javascript) Note that fonts can be defined in points, pixels, inches or centimeters.