HTML” is typically used to describe the combination of HTML, style sheets and scripts that allows documents to be animated ► Script is a small program can be executed in the browser. The advent of scripting added dynamism to the Web page ► What is a Dynamic Web Page ? A dynamic web page is one whose appearance and content can be altered without the browser making a new request to the web server, even
after page has fully loaded
3
What is DHTML ? (2) ► Microsoft
and Netscape each have their own way of implementing Dynamic HTML. Microsoft focuses on the use of Cascading Style Sheets (CSS). Script code can be used to manipulate the elements of CSS. ► Netscape also uses style sheets. However, the approach to Dynamic HTML is based mainly on the used of layers. The LAYER tag is used to provide most of the features of Dynamic HTML. 4
What is DHTML ? (3) ► Cascading
Style Sheets are a feature implemented in HTML 4.0. The World Wide Web Consortium (W3C) has implemented three CSS recommendations-called CSSI, CSS-P, and CSS2 CSS-I allows you to implement basic style changes to a document, such as changing its font styles CSS-P gives you control over the position of page
elements, using a layers metaphor. CSS-P layers can be transparent and absolutely positioned, and do not necessary affect the elements on other layers CSS-2 combines both CSS-I and CSS-P and introduces several new features, such as electronic audio 5
Features of Dynamic HTML ► Dynamic
Styles
► Dynamic
Content
► Positioning
and Animation ► Downloadable Fonts (for Netscape Navigator) ► Filter ► Data
and Transitions
binding
► Object
Structure or Dynamic HTML Object Model
► Scripting
6
Introduction to Style Sheets ►A
style sheet is the place where we manage and control styles. ► The style sheet describes the appearance and presentation of an HTML document as it will be presented on screen, or even in print. ► We can also precisely specify the location and appearance of elements on a page and create special effects. 7
Methods of changing Style of Web Page ► Inline
style
Style information can be used inline. We can include it within the tag of the HTML element.
The STYLE Attribute is used to apply style sheets to individual elements. Using the Style Attribute we can bypass the Style Element and put declarations directly into individual start tags