Tutorial 6 By Sam INE 1020 Introduction to Internet Engineering 1 DHTML & CSS Tutorial 6.

Slides:



Advertisements
Similar presentations
Session 10 Dynamic HTML: Cascading Style Sheets™ (CSS), Object Model and Collections Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Advertisements

1 Cascading Style Sheets™ (CSS) Outline 5.1 Introduction 5.2 Inline Styles 5.3 Embedded Style Sheets 5.4 Conflicting Styles 5.5 Linking External Style.
It’s All About Style The Basics of Style Sheets Presented by Barry Diehl.
Part 3 Introduction to CSS. CSS Text Text Styles h1 {color: green} // rgb(0,255,0), #00ff00 h2{letter-spacing: 0.5cm} // 2px h3 {text-align: right} //
1 Dynamic HTML: Cascading Style Sheets™ (CSS). 2 Introduction Cascading Style Sheets (CSS) –Specify the style of your page elements –Spacing, margins,
1 XHTML Cascading Style Sheets™ (CSS). 2 Inline.html 1 2
 2002 Prentice Hall, Inc. All rights reserved. Chapter 4 – Cascading Style Sheets (CSS) Outline 4.1Introduction 4.2Inline Styles 4.3Creating Style Sheets.
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
CSS: Cascading Style Sheets. What are Style Sheets A style sheet is a mechanism that allows to specify how HTML (/XHTML/XML) pages should look The style.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic DHTML.
© 2007 D. J. Foreman CSS-1 Cascading Style Sheets Styles.
3.1 Cascading Style Sheets. Motto Fashions fade, style is eternal. —Yves Saint Laurent.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
TECH2018 Multimedia and the Internet More about CSS and Page Layouts.
Principles of Web Design 6 th Edition Chapter 4 – Cascading Style Sheets.
Using Cascading Style Sheets. Introduction to Styles and Properties  Cascading Style Sheets (CSS) are a standard set by the World Wide Web Consortium.
Cascading Style Sheets CS3505. What are CSS? Method for adding style attributes consistently to HML tags Cascading because styles are applied in order.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 14 – Dynamic HTML: Cascading Style Sheets (CSS) Outline 14.1Introduction 14.2Inline Styles.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 13 - Dynamic HTML: Object Model and Collections Outline 13.1 Introduction 13.2 Object Referencing.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
WORKING WITH CASCADING
New Perspectives on XML, 2nd Edition Tutorial 5 1 TUTORIAL 5 WORKING WITH CASCADING STYLE SHEETS.
 HTML stands for Hyper Text Mark-up Language. The coding language used to create documents for the World Wide Web  HTML is composed of tags. HTML tags.
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.
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 6 - Cascading Style Sheets™ (CSS) Outline 6.1 Introduction 6.2 Inline Styles 6.3 Embedded Style.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Cascading Style Sheets Chapter Four. What are they? A set of style rules that tell the web browser how to present a web page or document. Cascading Style.
CO1552 – Web Application Development Cascading Style Sheets.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Cascading Style Sheets Class 2, Lecture 2 Rachel A Ober
COP 3813 Intro to Internet Computing Prof. Roy Levow Lecture 3.
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.
HTML - Quiz #2 Attendance CODE:
 2001 Deitel & Associates, Inc. All rights reserved. 1 Chapter 20 – Dynamic HTML: Object Model and Collections Outline 20.1Introduction 20.2Object Referencing.
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, 4 th Edition.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 13 - Dynamic HTML: Object Model and Collections Outline 13.1 Introduction 13.2 Object Referencing.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
 Cascading Style Sheets (CSS) ◦ Used to specify the presentation of elements separately from the structure of the document.  Inline style ◦ declare.
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.
Cascading Style Sheets
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
XP Review 2 New Perspectives on JavaScript, Comprehensive1 Introducing Cascading Style Sheets Formatting Web Pages with CSS.
 2008 Pearson Education, Inc. All rights reserved Cascading Style Sheets™ (CSS)
Introduction to CSS September 20, Introduction Cascading Style Sheets (CSS) –Separation of structure from presentation CSS guide and tutorial.
5 th ed: Chapter 4 4 th ed: Chapter 5 SY306 Web and Databases for Cyber Operations Slide Set #4: CSS.
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.
CSS: Cascading Style Sheets Part II. Style Syntax.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 15 – Dynamic HTML: Object Model and Collections Outline 15.1Introduction 15.2Object Referencing.
Basic Webpage Design Cascading Style Sheet (CSS).
Chapter 7.  Change body and link styles  Create a drop-down menu  Change color and font styles in the menu  Create a pop-up effect using CSS  Utilize.
JavaScript and Ajax (JavaScript Dynamic HTML (DHTML)) Week 7 Web site:
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
Cascading Style Sheets Robin Burke ECT 270. Outline CSS properties Fonts Alignment Color CSS selection selectors.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Internet & World Wide Web How to Program, 5/e 1. 2.
Chapter 6 Cascading Style Sheets™ (CSS)
Cascading Style Sheets
Chapter 13 - Dynamic HTML: Object Model and Collections
Cascading Style Sheets™ (CSS)
Presentation transcript:

Tutorial 6 By Sam INE 1020 Introduction to Internet Engineering 1 DHTML & CSS Tutorial 6

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering2 DHTML – Intro(1) ► Dynamic Hypertext Markup Language ► Combination of technologies to make Web pages dynamic ► Not a standard ► Marketing Term used by Microsoft and Netscape

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering3 DHTML – Intro(2) ► Scripting Language e.g. JavaScript, VBScript ► Incompatible Microsoft Internet Explorer DHTML Netscape DHTML ► Object Model

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering4 DHTML – Object Model window document history navigator applets all anchors body embeds forms filters images links plugins styleSheets scripts location screen event document plugins object collection Key frames

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering5 CSS – Intro ► Cascading Style Sheets ► W3C Recommendation ► Specify the presentation of elements on a Web page separately from the structure of the document ► XHTML, Dreamweaver

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering6 CSS - Basics <html><head><title>Testing</title></head><body> This is Testing This is Testing </body></html>

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering7 CSS – Inline Styles <html> Inline Styles Inline Styles <body> This is Testing, using CSS This is Testing, using CSS </body></html>

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering8 CSS – Multiple Properties <html> Inline Styles Inline Styles <body> This is Testing, using CSS This is Testing, using CSS </body></html>

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering9 CSS – List of Properties Properties Options / Example Color Blue, #8000ff Font-size pt, in, cm, mm, pc, em, ex Font-family Arial, sans-serif Background-color Green, #0000ff Text-decoration None, overline, underline, line-through Font-weight Normal, bold, bolder, 300 Margin-left pt, in, cm, mm, pc, em, ex Text-indent

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering10 CSS – Embedded Style Sheets <html> Embedded Style Sheets Embedded Style Sheets em { background-color: #8000ff } </style><body> This is Testing, using CSS This is Testing, using CSS </body></html>

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering11 CSS – External Style Sheets Ex5.html<html> Inline Styles Inline Styles </head><body><p> CUHK Homepage CUHK Homepage </p></body></html>styles.css a { font-weight: bold }

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering12 CSS – Brief Summary Three types of Style Sheets 1. Inline 2. Embedded 3. External

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering13 More about CSS(1) <html> More about CSS More about CSS.p1 { color : blue }.p2 { color : green; font-weight : bolder } a.nodec { background-color : red } a:hover { font-size : 30pt } </style></head><body> This text is blue This text is blue This text is green and bold This text is green and bold This text is normal This text is normal This is a hyperlink, with red in background. When the mouse cursor is over me, the font size will be larger This is a hyperlink, with red in background. When the mouse cursor is over me, the font size will be larger </body></html>

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering14 More about CSS(1)

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering15 More about CSS(2) <html> More about CSS More about CSS.underlined { text-decoration: underline } ul { background-color : green; color : yellow} ul ul { background-color : blue } </style></head><body> The text at the end is underline The text at the end is underline <ul><li>Milk</li><li>Bread<ul> White Bread White Bread Rye Bread Rye Bread </ul></ul></body></html>

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering16 More about CSS(3) ► Positioning Elements Position: absolute/relative Top, left : px … Z-index : 1 ► Text Flow & Box Model Margin-right/left/top/bottom : px … Border-width/style/colorPadding-top/right/left/bottom

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering17 CSS – Brief Summary ► Class ► Pseudoclass ► Span ► Inheritance ► Other (Position Elements, Text flow, Box Model)

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering18 CSS - Cascading Order ► In the order of specificity The child styles are more specific than the styles for that child ’ s parent Eg. ul ul is more specific than ul ► In the same specificity, the order will be:  External Style Sheets (lower priority)  Embedded Style Sheets  Inline Style Sheets (the highest priority)

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering19 CSS - Dreamweaver

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering20 CSS – User Style Sheet

Tutorial 6 By SamINE 1020 Introduction to Internet Engineering21 CSS - Reference Internet & World Wide Web How to program 2 nd Edition, Deitel Deitel Nieto Chapter 6 Cascading Style Sheets