The Deconstruction of a Dynamic XHTML Web Page. DXHTML? What's so great about it? You can use XML-based languages like SVG and SMIL with relative ease.

Slides:



Advertisements
Similar presentations
Cross-Browser Compatibility. Myth or Reality? There's a long tradition to be overcome Sniffers to look for browser and OS combinations Separate code forks.
Advertisements

XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Copenhagen, 6 December 2004 Modern CSS Principles Miruna Bădescu Finsiel Romania.
HTML Basics Customizing your site using the basics of HTML.
1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
XHTML Week Two Web Design. 2 What is XHTML? XHTML is the current standard for HTML Newest generation of HTML (post-HTML 4) but has many new features which.
KompoZer. This is what KompoZer will look like with a blank document open. As you can see, there are a lot of icons for beginning users. But don't be.
Website Design.
Cascading Style Sheets
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
XHTML Basics.
Cascading style sheets CSS
Introducing Cascading Style Sheets  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles  Text Formatting with CSS.
 CSS ids  Pages  Sites  HTML: class=“name”  Names may define format OR content › Either works  CAN apply multiple classes to the same tag  Multiple.
XHTML 16-Apr-17.
XHTML1 Building Document Structure. XHTML2 Objectives In this chapter, you will: Learn how to create Extensible Hypertext Markup Language (XHTML) documents.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Chapter 16 Dynamic HTML and Animation The Web Warrior Guide to Web Design Technologies.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Chapter 9 Introduction to the Document Object Model (DOM) JavaScript, Third Edition.
Tutorial 13 Working with Objects and Styles. XP Objectives Learn about objects and the document object model Reference documents objects by ID, name,
XML Technologies XML Basics  What is XML?  Why use XML?  How to write XML? 1XML Technologies David Raponi.
Introduction to XHTML Professor Stephen Kwan. 2 XHTML HTML StyleSheets XML CascadingStyleSheets(CSS) ExtensibleStylesheetLanguage(XSL) StructureFormatContent.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
Bringing pages to life with jQuery BEAR BIBEAULT YEHUDA KATZ.
Working with Cascading Style Sheets. Introducing Cascading Style Sheets Style sheets are files or forms that describe the layout and appearance of a document.
Advanced CSS - Page Layout. Advanced CSS  Compound Selectors:  Is a Dreamweaver term, not a CSS term.  Describes more advanced types of selectors such.
XHTML The Basics A brief history of HTML SGML (Standard Generalized Markup Language) Then came HTML Followed by the browser…and the great browser wars.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Week 1 Understanding the Web Design Environment. 1-2 HTML: Then and Now HTML is an application of the Standard Generalized Markup Language Intended to.
DHTML Positioning and Layout. What is DHTML? HTML and xHTML CSS JavaScript or VBScript.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
1 HTML XHTML. 2 Understand the Doctype tag Know the html tags which are now classed as depreciated Understand how Dreamweaver adds styles Add styles to.
Lecture 13 – XML and JSON SFDV3011 – Advanced Web Development Reference: 1.
JavaScript, Fourth Edition
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XHTML By Trevor Adams. Topics Covered XHTML eXtensible HyperText Mark-up Language The beginning – HTML Web Standards Concept and syntax Elements (tags)
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
Web sites Design: Cascading Style Sheet (CSS) (Cont’d) Dimensions and Position of Elements –Width and Height Space –Table Cell Padding –Left and Top Position.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
School of Computing and Information Systems CS 371 Web Application Programming XML and JSON Encoding Data.
INTRODUCTION TO CSS. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features of CSS Features of CSS  Creating Style Sheet Creating Style Sheet.
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
Advanced Technical Writing 2006 Session #4. Today in Class… ► Meet with your editorial team, refine/post deliverables ► Send URL for deliverables to Bill.
1 Javascript DOM Peter Atkinson. 2 Objectives Understand the nature and structure of the DOM Add and remove content from the page Access and change element.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
IN THE DOCUMENT OBJECT MODEL, EACH LINE OF HTML IS AN ELEMENT (AN OBJECT), ABLE TO HAVE ATTRIBUTES, PROPERTIES AND VALUES. CSS TELLS THE BROWSER HOW TO.
Introduction to XML Jussi Pohjolainen TAMK University of Applied Sciences.
- WE’LL LOOK AT THE POSITION PROPERTY AND HOW CSS RESOLVES CONFLICTS BETWEEN STYLING INSTRUCTIONS The position property; CSS specificity hierarchy.
Chapter 10 Dynamic HTML (DHTML) JavaScript, Third Edition.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
What is XHTML? XHTML stands for Extensible Hypertext Markup Language
Unit 4 Representing Web Data: XML
Tutorial 9 Working with XHTML
Working with Tables: Module A: Table Basics
Using Cascading Style Sheets Module B: CSS Structure
Creating a Baseline Grid
Web Programming– UFCFB Lecture 9
Chapter 7 Representing Web Data: XML
HTML A brief introduction HTML.
Web Programming– UFCFB Lecture 9
XHTML 7-May-19.
XHTML 29-May-19.
Presentation transcript:

The Deconstruction of a Dynamic XHTML Web Page

DXHTML? What's so great about it? You can use XML-based languages like SVG and SMIL with relative ease The more strict structural requirements inherent in XHTML mean fewer surprises later on You can create your own customized markup (elements and attributes) and still have the document validate

Be Valid In All That You Do There is nothing more important! Validate your XHTML and eliminate all errors XHTML, being based on XML, cannot tolerate malformed structure Validate your CSS If a browser is advanced enough to handle DXHTML, it will require valid CSS to properly style things Tools are available

Style in a Dynamic World Two ways to go about it… Write static stylesheets and then dynamically modify values as needed This approach favors documents that start with a "default look" and then make a few changes Write out the whole stylesheet dynamically and then make dynamic modifications as needed Better for pages that are all-dynamic, or that change based on external parameters

Style Can Be So Fickle CSS support isn't a uniform space Although things are much better than in the past, browsers can still be inconsistent with CSS height and width get different treatment Percentage heights might not mean what you think they do Length values need units! Color values need octothorpes!

Making Designs Liquid Some principles to keep in mind Liquid page design is easy Instead of making everything a certain number of pixels wide, try using percentages If you're already dynamic, then real liquidity is that much easier Font sizes can be scaled along with the window! So can element heights

The W3C Owns the King DOM Old DOMs haunt us still document.layers died with LAYER itself document.all is still alive, but it's also completely proprietary Don't use either if you can avoid it! The W3C DOM is there and ready to useand it's supported by multiple browsers

DOM Collection Techniques The spec provides two useful tools: getElementsByTagName('tagname') Lets you work on all of the elements that share a name, like DIV or H1 Generally used to collect all such elements into an array which is passed around getElementsById('idvalue') Lets you pick whatever element has the given value for the ID attribute Often used to do on-the-fly restyling

Roll Your Own! getElementsWithClassName() function getElementsWithClassName(elementName,className) { var allElements = document.getElementsByTagName(elementName); var elemColl = new Array(); for (i = 0; i < allElements.length; i++) { if (allElements[i].className == className) { elemColl[elemColl.length] = allElements[i]; } } return elemColl; } Use notes: To get all elements with a given class call getElementsWithClassName('*','className'); Doesn't work with non-standard browsers (including IE4 and NN4.x)

Customizing XHTML It doesn't take a DTD However, it does take at least a customized schema Standards-compliant schema can be automatically generated by tools such as xmlspy You can add your own attributes, or even whole new elements Of course, those new elements will need to be described in CSS