The Web Wizard - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

The Web Wizard

Description:

The Web Wizard s Guide To DHTML and CSS Chapter 3 Introducing the W3C DOM Chapter Objectives To discover the W3C DOM its nature and its importance To learn about ... – PowerPoint PPT presentation

Number of Views:89
Avg rating:3.0/5.0
Slides: 7
Provided by: Steven1108
Category:
Tags: document | model | object | web | wizard

less

Transcript and Presenter's Notes

Title: The Web Wizard


1
The Web Wizards Guide To DHTML and CSS
  • Chapter 3
  • Introducing the W3C DOM

2
Chapter Objectives
  • To discover the W3C DOMits nature and its
    importance
  • To learn about nodes and how to reference them
  • To learn how to dynamically change the content of
    nodes

3
What is the DOM?
  • DOM is Document Object Model
  • A standard way to refer to objects on a Web page
  • The W3C DOM1 replaces proprietary DOMs from
    Netscape and Microsoft
  • document.getElementById()
  • document.getElementsByTagName()

4
What are Nodes?
  • An object in DOM1 is called a node.
  • Element nodes (ltpgt, lth1gt, etc.)
  • Text nodes (text contained by element nodes)
  • Attribute nodes (aligncenter)

5
Visualizing Nodes
6
Things to do with nodes
  • Change the text of nodes
  • Add and remove text nodes
  • Create element nodes to dynamically style content
  • Change the value of attribute nodes
Write a Comment
User Comments (0)
About PowerShow.com