SlideShare una empresa de Scribd logo
1 de 20
DHTML
Sohaib Saleem Ch
5th Semester
Resp. Inam ul Haq
DHTML By Sohaib- UE Okara Campus 1
Contents
■ Define what is DHTML?
■ Why DHTML
■ Features
■ Document Object Model
■ Event
■ Dynamic Style
■ Data Binding
■ Difference between HTML and DHTML
■ Uses
■ Advantage of DHTML
■ Disadvantage of DHTML
DHTML By Sohaib- UE Okara Campus 2
Define what is DHTML?
■ DHTML stands for “dynamic hypertext transfer
markup language”.
■ DHTML is not a language.
■ DHTML is a term describing the art of making
dynamic & interactive WebPages.
■ Designed to enhance a web user’s experience.
DHTML By Sohaib- UE Okara Campus 3
Define DHTML cont….
■ DHTML is a combination of web development
technologies used to create dynamically changing
websites.
■ WebPages may include animation, dynamic
menus & text effects.
■ The technologies used include a combination of
HTML, JavaScript, or VBScript, CSS & the
document object model(DOM).
DHTML = CSS + JavaScript + DOM + HTML
DHTML By Sohaib- UE Okara Campus 4
Why DHTML
■ With DHTML you can create:
– Animation
– Pop-up menus
– Inclusion of Web page content from
external data sources
– Elements that can be dragged and
dropped within the Web page
DHTML By Sohaib- UE Okara Campus 5
Features
■ DHTML includes the following features:-
– Dynamic content, which allows the user to
dynamically change web page content.
– Dynamic positioning of web page elements.
– Dynamic style which allows the user to
change the web page’s color, font, size or
content.
– Dynamic fonts (Netscape Communicator)
– Data binding (Internet Explorer)
DHTML By Sohaib- UE Okara Campus 6
Document Object Model
■ To allow scripts and components to access features of
HTML and CSS, the contents of the document were
represented as objects in a programming model known as
the Document Object Model (DOM).
■ The DOM also provides access to user actions such as
pressing a key and clicking the mouse.
■ DHTML DOM refers the different elements contained
within the web page as objects. It is a platform
independent object model that allows the scripts to
access the HTML and CSS elements.
■ DHTML DOM provides full support to events triggered
by the user. This allows responding to user’s input and to
generate better interactivity with much ease.
DHTML By Sohaib- UE Okara Campus 7
Document Object Model
DHTML By Sohaib- UE Okara Campus 8
DHTML objects
■ Every element contained within a web page is referred as an
object. The DHTML objects allow you to access and manipulate
the element by using the different properties and methods.
■ Some of DHTML objects:
– a: specifies the beginning and end of a hypertext link.
– body: specifies the start and end of the body of the document.
– div: divides a web page into multiple sections, where each
section can render other HTML elements.
– document: represents the entire HTML document.
– form: Specifies a container for other controls.
– frame: specifies a frame within a frameset.
– frameset: specifies a frameset that can hold multiple frames.
– html: specifies the HTML elements.
DHTML By Sohaib- UE Okara Campus 9
DHTML objects
■ Some of DHTML objects:
– img: specifies an image or video clip to be embedded in the
document.
– input: creates different form input controls.
– li: specifies a list item.
– link: specifies a link between the existing document and
external document.
– span: Specifies an inline element to apply styles to a part of
the text.
– table: specifies that the content should be displayed in a
table.
– td: specifies the data to be displayed in a table cell.
– tr: specifies a table row.
DHTML By Sohaib- UE Okara Campus 10
Event
■ An event occurs when the user interacts with the web
page. Some of the commonly generated events are
mouse clicks, key strokes, and so on.
■ The process of handling these events is known as
event handling. Event handling is process of
specifying actions to be performed when an event
occurs. This is done by using an event handler.
■ The event handler is a scripting code or a function
that defines the actions to be performed when the
event triggered.
■ When an event occurs, an event handler function that
is associated with the specific event is invoked.
DHTML By Sohaib- UE Okara Campus 11
Life circle of an event
■ The user performs an action to raise an event.
■ The event object is updated to determine the event
state.
■ The event is fired.
■ The event bubbling occurs as the event bubbles
through the elements of the hierarchy.
■ The event handler is invoked that performs the
specified actions.
■ Some keyboard events:
■ onKeyDown: Occurs when a key is pressed down.
■ onKeyUp: Occurs when a key is released.
■ onKeyPress: Occurs when a key is pressed and
released.
DHTML By Sohaib- UE Okara Campus 12
Dynamic styles
■ Dynamic styles are a key feature of DHTML.
■ Quickly change the appearance and formatting
of elements in a document without adding or
removing elements.
■ We can change inline styles on individual
elements and change style rules using simple
script-based programming.
■ Helps keep your documents small and the
scripts that manipulate the document fast.
DHTML By Sohaib- UE Okara Campus 13
Data binding
■ Bind individual elements in your
document to data from another source,
such as a database or comma-delimited
text file.
■ When the document is loaded, the data
is automatically retrieved from the
source and formatted and displayed
within the element.
DHTML By Sohaib- UE Okara Campus 14
Difference between HTML and DHTML
■ HTML stands for Hyper Text Mark-up Language where DHTML
stands for Dynamic Hyper Text Mark-up Language.
■ Html is a language where DHTML is a Technology.
■ HTML is a collection of tags where in DHTML, It is a collection of
technology.
■ DHTML sites are dynamic in nature and HTML is static.
■ A plain page without any styles and Scripts called as HTML
whereas A page with HTML, CSS, DOM and Scripts called as
DHTML.
■ HTML sites will be slow upon client-side technologies while
DHTML sites will be fast enough upon client-side technologies.
DHTML By Sohaib- UE Okara Campus 15
Uses
■ Animate text and images in their document, independently
moving each element from any starting point to any ending
point, following a predetermined path or one chosen by the user.
■ Embed a ticker that automatically refreshes its content with the
latest news, stock quotes, or other data.
■ Use a form to capture user input, and then process and respond
to that data without having to send data back to the server.
■ Include rollover buttons or drop-down menus.
DHTML By Sohaib- UE Okara Campus 16
Advantages of DHTML
1. DHTML is more efficient for content management
purposes.
2. Results in faster and fresher content and visual appeal.
3. DHTML for web design is that it is easier to create good
internal linking and cross linking.
4. Small file size:- DHTML files are small compared to
other interactive media such as flash or shockwave.
Therefore they have a shorter download time & take up
less bandwidth.
5. Supported by both major browser manufactures:- both
Microsoft & Netscape currently support DHTML in some
shape or form.
DHTML By Sohaib- UE Okara Campus 17
Advantages of DHTML
6. Fast and Zippy: - DHTML loads content on fly. Your whole page
does not loads but only the content part that needs to be altered, so
saving the crucial time for the users and giving the snazzy look to the
website.
7. DHTML will be a standard:- the WWW consortium or the W3C is
the currently implementing standards for DHTML technologies. It
has already released preliminary specification for DOM & CSS.
8. No plug-ins necessary:- DHTML uses most of the features already
present in the browsers, so there is no need to download any sort of
plug-ins.
9. Great Utility:- The dynamic features possessed by dHTML are
helping web designers to create Web pages that posses compact
looks, downloads fast, have graphic effects, provides greater
functionality and can hold much more text or content all at the same
time.
10. Doesn’t require a java virtual machine.
DHTML By Sohaib- UE Okara Campus 18
Disadvantages of DHTML
1. Costly editing tools:- DHTML provides great functionality but the
editors available for that in market are pretty expensive. E.g.:-
Dreamweaver & fusion
2. Only new browser support DHTML:- DHTML is only supported by
Netscape 4.0 or higher & internet explolor(IE) 4.0 or higher version.
3. Long and complex coding:- DHTML coding is long and complex
only the expert JavaScript & HTML programmers can write them &
edit them with good degree of functionality.
4. Browser support problem:- DHTML suffer from browser support
problems for different browser.
5. Unprotected source code.
DHTML By Sohaib- UE Okara Campus 19
Thank you !!
DHTML By Sohaib- UE Okara Campus 20

Más contenido relacionado

La actualidad más candente (20)

Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
Static and Dynamic webpage
Static and Dynamic webpageStatic and Dynamic webpage
Static and Dynamic webpage
 
Cascading style sheets (CSS)
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
 
Linkers
LinkersLinkers
Linkers
 
Client & server side scripting
Client & server side scriptingClient & server side scripting
Client & server side scripting
 
Multimedia synchronization
Multimedia synchronizationMultimedia synchronization
Multimedia synchronization
 
Basic-CSS-tutorial
Basic-CSS-tutorialBasic-CSS-tutorial
Basic-CSS-tutorial
 
Scripting languages
Scripting languagesScripting languages
Scripting languages
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Document Type Definition (DTD)
Document Type Definition (DTD)Document Type Definition (DTD)
Document Type Definition (DTD)
 
CSS selectors
CSS selectorsCSS selectors
CSS selectors
 
DHTML
DHTMLDHTML
DHTML
 
Xml presentation
Xml presentationXml presentation
Xml presentation
 
Div tag presentation
Div tag presentationDiv tag presentation
Div tag presentation
 
The compilation process
The compilation processThe compilation process
The compilation process
 
CSS.ppt
CSS.pptCSS.ppt
CSS.ppt
 
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
 
How Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
 
Xml parsing
Xml parsingXml parsing
Xml parsing
 
Introduction to XHTML
Introduction to XHTMLIntroduction to XHTML
Introduction to XHTML
 

Destacado

13. session 13 introduction to dhtml
13. session 13   introduction to dhtml13. session 13   introduction to dhtml
13. session 13 introduction to dhtmlPhúc Đỗ
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event ModelReem Alattas
 
DHTML - Events & Buttons
DHTML - Events  & ButtonsDHTML - Events  & Buttons
DHTML - Events & ButtonsDeep Patel
 
DHTML - Dynamic HTML
DHTML - Dynamic HTMLDHTML - Dynamic HTML
DHTML - Dynamic HTMLReem Alattas
 
TinyMCE: WYSIWYG editor 2010-12-08
TinyMCE: WYSIWYG editor 2010-12-08TinyMCE: WYSIWYG editor 2010-12-08
TinyMCE: WYSIWYG editor 2010-12-08Andy Gelme
 
Introduction of The Dream Weavers
Introduction of The Dream WeaversIntroduction of The Dream Weavers
Introduction of The Dream WeaversThe Dream Weavers
 
Normalization
NormalizationNormalization
NormalizationJTHSICT
 
Report Normalization documents
Report Normalization documentsReport Normalization documents
Report Normalization documentsWakil Kumar
 
Html5 Canvas Drawing and Animation
Html5 Canvas Drawing and AnimationHtml5 Canvas Drawing and Animation
Html5 Canvas Drawing and AnimationMindfire Solutions
 
Penerbitan video korporat
Penerbitan video korporatPenerbitan video korporat
Penerbitan video korporatHazrul Halim
 
Introduction to Dreamweaver
Introduction to DreamweaverIntroduction to Dreamweaver
Introduction to DreamweaverSarah Bombich
 
Dreamweaver - Introduction AND WALKTHROUGH
Dreamweaver - Introduction AND WALKTHROUGHDreamweaver - Introduction AND WALKTHROUGH
Dreamweaver - Introduction AND WALKTHROUGHSahil Bansal
 

Destacado (20)

13. session 13 introduction to dhtml
13. session 13   introduction to dhtml13. session 13   introduction to dhtml
13. session 13 introduction to dhtml
 
Dynamic HTML
Dynamic HTMLDynamic HTML
Dynamic HTML
 
Dhtml
DhtmlDhtml
Dhtml
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event Model
 
DHTML - Events & Buttons
DHTML - Events  & ButtonsDHTML - Events  & Buttons
DHTML - Events & Buttons
 
DHTML - Dynamic HTML
DHTML - Dynamic HTMLDHTML - Dynamic HTML
DHTML - Dynamic HTML
 
Dhtml chapter2
Dhtml chapter2Dhtml chapter2
Dhtml chapter2
 
Dreamweawer
DreamweawerDreamweawer
Dreamweawer
 
TinyMCE: WYSIWYG editor 2010-12-08
TinyMCE: WYSIWYG editor 2010-12-08TinyMCE: WYSIWYG editor 2010-12-08
TinyMCE: WYSIWYG editor 2010-12-08
 
171dreamweaver
171dreamweaver171dreamweaver
171dreamweaver
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Introduction of The Dream Weavers
Introduction of The Dream WeaversIntroduction of The Dream Weavers
Introduction of The Dream Weavers
 
Normalization
NormalizationNormalization
Normalization
 
Report Normalization documents
Report Normalization documentsReport Normalization documents
Report Normalization documents
 
Html5 Canvas Drawing and Animation
Html5 Canvas Drawing and AnimationHtml5 Canvas Drawing and Animation
Html5 Canvas Drawing and Animation
 
WYSIWYG Is a Lie
WYSIWYG Is a LieWYSIWYG Is a Lie
WYSIWYG Is a Lie
 
Normalization
NormalizationNormalization
Normalization
 
Penerbitan video korporat
Penerbitan video korporatPenerbitan video korporat
Penerbitan video korporat
 
Introduction to Dreamweaver
Introduction to DreamweaverIntroduction to Dreamweaver
Introduction to Dreamweaver
 
Dreamweaver - Introduction AND WALKTHROUGH
Dreamweaver - Introduction AND WALKTHROUGHDreamweaver - Introduction AND WALKTHROUGH
Dreamweaver - Introduction AND WALKTHROUGH
 

Similar a Dhtml sohaib ch

"DHTML vs HTML: Understanding the Dynamic Web Technologies"
"DHTML vs HTML: Understanding the Dynamic Web Technologies""DHTML vs HTML: Understanding the Dynamic Web Technologies"
"DHTML vs HTML: Understanding the Dynamic Web Technologies"NimoMuhumed
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTMLRich Dron
 
Understanding the dom by Benedict Ayiko
Understanding the dom by Benedict AyikoUnderstanding the dom by Benedict Ayiko
Understanding the dom by Benedict AyikoDamalie Wasukira
 
Digital Marketing Company
Digital Marketing CompanyDigital Marketing Company
Digital Marketing CompanyPayal9675
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSTimo Herttua
 
WEB TECHNOLOGY Unit-4.pptx
WEB TECHNOLOGY Unit-4.pptxWEB TECHNOLOGY Unit-4.pptx
WEB TECHNOLOGY Unit-4.pptxkarthiksmart21
 
How Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishHow Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishNagamurali Reddy
 
Tech talk polymer
Tech talk polymerTech talk polymer
Tech talk polymerYanuar W
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3inshu1890
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusNANDINI SHARMA
 
Web Components
Web ComponentsWeb Components
Web ComponentsFITC
 
AD109 Navigating the Jungle of Modern Web Development
AD109 Navigating the Jungle of Modern Web DevelopmentAD109 Navigating the Jungle of Modern Web Development
AD109 Navigating the Jungle of Modern Web DevelopmentShean McManus
 
Web Components
Web ComponentsWeb Components
Web ComponentsFITC
 
Slides 1 - Internet and Web
Slides 1 - Internet and WebSlides 1 - Internet and Web
Slides 1 - Internet and WebMassimo Callisto
 

Similar a Dhtml sohaib ch (20)

"DHTML vs HTML: Understanding the Dynamic Web Technologies"
"DHTML vs HTML: Understanding the Dynamic Web Technologies""DHTML vs HTML: Understanding the Dynamic Web Technologies"
"DHTML vs HTML: Understanding the Dynamic Web Technologies"
 
HTML_DOM
HTML_DOMHTML_DOM
HTML_DOM
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTML
 
Understanding the dom by Benedict Ayiko
Understanding the dom by Benedict AyikoUnderstanding the dom by Benedict Ayiko
Understanding the dom by Benedict Ayiko
 
Digital Marketing Company
Digital Marketing CompanyDigital Marketing Company
Digital Marketing Company
 
dot net unit-1.pdf
dot net unit-1.pdfdot net unit-1.pdf
dot net unit-1.pdf
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSS
 
WEB TECHNOLOGY Unit-4.pptx
WEB TECHNOLOGY Unit-4.pptxWEB TECHNOLOGY Unit-4.pptx
WEB TECHNOLOGY Unit-4.pptx
 
WEB Module 1.pdf
WEB Module 1.pdfWEB Module 1.pdf
WEB Module 1.pdf
 
How Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul IrishHow Browsers Work -By Tali Garsiel and Paul Irish
How Browsers Work -By Tali Garsiel and Paul Irish
 
Tech talk polymer
Tech talk polymerTech talk polymer
Tech talk polymer
 
WEB DEVELOPMENT
WEB DEVELOPMENTWEB DEVELOPMENT
WEB DEVELOPMENT
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV Syllabus
 
1_Intro_toHTML.ppt
1_Intro_toHTML.ppt1_Intro_toHTML.ppt
1_Intro_toHTML.ppt
 
Web Components
Web ComponentsWeb Components
Web Components
 
Web Design
Web DesignWeb Design
Web Design
 
AD109 Navigating the Jungle of Modern Web Development
AD109 Navigating the Jungle of Modern Web DevelopmentAD109 Navigating the Jungle of Modern Web Development
AD109 Navigating the Jungle of Modern Web Development
 
Web Components
Web ComponentsWeb Components
Web Components
 
Slides 1 - Internet and Web
Slides 1 - Internet and WebSlides 1 - Internet and Web
Slides 1 - Internet and Web
 

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Dhtml sohaib ch

  • 1. DHTML Sohaib Saleem Ch 5th Semester Resp. Inam ul Haq DHTML By Sohaib- UE Okara Campus 1
  • 2. Contents ■ Define what is DHTML? ■ Why DHTML ■ Features ■ Document Object Model ■ Event ■ Dynamic Style ■ Data Binding ■ Difference between HTML and DHTML ■ Uses ■ Advantage of DHTML ■ Disadvantage of DHTML DHTML By Sohaib- UE Okara Campus 2
  • 3. Define what is DHTML? ■ DHTML stands for “dynamic hypertext transfer markup language”. ■ DHTML is not a language. ■ DHTML is a term describing the art of making dynamic & interactive WebPages. ■ Designed to enhance a web user’s experience. DHTML By Sohaib- UE Okara Campus 3
  • 4. Define DHTML cont…. ■ DHTML is a combination of web development technologies used to create dynamically changing websites. ■ WebPages may include animation, dynamic menus & text effects. ■ The technologies used include a combination of HTML, JavaScript, or VBScript, CSS & the document object model(DOM). DHTML = CSS + JavaScript + DOM + HTML DHTML By Sohaib- UE Okara Campus 4
  • 5. Why DHTML ■ With DHTML you can create: – Animation – Pop-up menus – Inclusion of Web page content from external data sources – Elements that can be dragged and dropped within the Web page DHTML By Sohaib- UE Okara Campus 5
  • 6. Features ■ DHTML includes the following features:- – Dynamic content, which allows the user to dynamically change web page content. – Dynamic positioning of web page elements. – Dynamic style which allows the user to change the web page’s color, font, size or content. – Dynamic fonts (Netscape Communicator) – Data binding (Internet Explorer) DHTML By Sohaib- UE Okara Campus 6
  • 7. Document Object Model ■ To allow scripts and components to access features of HTML and CSS, the contents of the document were represented as objects in a programming model known as the Document Object Model (DOM). ■ The DOM also provides access to user actions such as pressing a key and clicking the mouse. ■ DHTML DOM refers the different elements contained within the web page as objects. It is a platform independent object model that allows the scripts to access the HTML and CSS elements. ■ DHTML DOM provides full support to events triggered by the user. This allows responding to user’s input and to generate better interactivity with much ease. DHTML By Sohaib- UE Okara Campus 7
  • 8. Document Object Model DHTML By Sohaib- UE Okara Campus 8
  • 9. DHTML objects ■ Every element contained within a web page is referred as an object. The DHTML objects allow you to access and manipulate the element by using the different properties and methods. ■ Some of DHTML objects: – a: specifies the beginning and end of a hypertext link. – body: specifies the start and end of the body of the document. – div: divides a web page into multiple sections, where each section can render other HTML elements. – document: represents the entire HTML document. – form: Specifies a container for other controls. – frame: specifies a frame within a frameset. – frameset: specifies a frameset that can hold multiple frames. – html: specifies the HTML elements. DHTML By Sohaib- UE Okara Campus 9
  • 10. DHTML objects ■ Some of DHTML objects: – img: specifies an image or video clip to be embedded in the document. – input: creates different form input controls. – li: specifies a list item. – link: specifies a link between the existing document and external document. – span: Specifies an inline element to apply styles to a part of the text. – table: specifies that the content should be displayed in a table. – td: specifies the data to be displayed in a table cell. – tr: specifies a table row. DHTML By Sohaib- UE Okara Campus 10
  • 11. Event ■ An event occurs when the user interacts with the web page. Some of the commonly generated events are mouse clicks, key strokes, and so on. ■ The process of handling these events is known as event handling. Event handling is process of specifying actions to be performed when an event occurs. This is done by using an event handler. ■ The event handler is a scripting code or a function that defines the actions to be performed when the event triggered. ■ When an event occurs, an event handler function that is associated with the specific event is invoked. DHTML By Sohaib- UE Okara Campus 11
  • 12. Life circle of an event ■ The user performs an action to raise an event. ■ The event object is updated to determine the event state. ■ The event is fired. ■ The event bubbling occurs as the event bubbles through the elements of the hierarchy. ■ The event handler is invoked that performs the specified actions. ■ Some keyboard events: ■ onKeyDown: Occurs when a key is pressed down. ■ onKeyUp: Occurs when a key is released. ■ onKeyPress: Occurs when a key is pressed and released. DHTML By Sohaib- UE Okara Campus 12
  • 13. Dynamic styles ■ Dynamic styles are a key feature of DHTML. ■ Quickly change the appearance and formatting of elements in a document without adding or removing elements. ■ We can change inline styles on individual elements and change style rules using simple script-based programming. ■ Helps keep your documents small and the scripts that manipulate the document fast. DHTML By Sohaib- UE Okara Campus 13
  • 14. Data binding ■ Bind individual elements in your document to data from another source, such as a database or comma-delimited text file. ■ When the document is loaded, the data is automatically retrieved from the source and formatted and displayed within the element. DHTML By Sohaib- UE Okara Campus 14
  • 15. Difference between HTML and DHTML ■ HTML stands for Hyper Text Mark-up Language where DHTML stands for Dynamic Hyper Text Mark-up Language. ■ Html is a language where DHTML is a Technology. ■ HTML is a collection of tags where in DHTML, It is a collection of technology. ■ DHTML sites are dynamic in nature and HTML is static. ■ A plain page without any styles and Scripts called as HTML whereas A page with HTML, CSS, DOM and Scripts called as DHTML. ■ HTML sites will be slow upon client-side technologies while DHTML sites will be fast enough upon client-side technologies. DHTML By Sohaib- UE Okara Campus 15
  • 16. Uses ■ Animate text and images in their document, independently moving each element from any starting point to any ending point, following a predetermined path or one chosen by the user. ■ Embed a ticker that automatically refreshes its content with the latest news, stock quotes, or other data. ■ Use a form to capture user input, and then process and respond to that data without having to send data back to the server. ■ Include rollover buttons or drop-down menus. DHTML By Sohaib- UE Okara Campus 16
  • 17. Advantages of DHTML 1. DHTML is more efficient for content management purposes. 2. Results in faster and fresher content and visual appeal. 3. DHTML for web design is that it is easier to create good internal linking and cross linking. 4. Small file size:- DHTML files are small compared to other interactive media such as flash or shockwave. Therefore they have a shorter download time & take up less bandwidth. 5. Supported by both major browser manufactures:- both Microsoft & Netscape currently support DHTML in some shape or form. DHTML By Sohaib- UE Okara Campus 17
  • 18. Advantages of DHTML 6. Fast and Zippy: - DHTML loads content on fly. Your whole page does not loads but only the content part that needs to be altered, so saving the crucial time for the users and giving the snazzy look to the website. 7. DHTML will be a standard:- the WWW consortium or the W3C is the currently implementing standards for DHTML technologies. It has already released preliminary specification for DOM & CSS. 8. No plug-ins necessary:- DHTML uses most of the features already present in the browsers, so there is no need to download any sort of plug-ins. 9. Great Utility:- The dynamic features possessed by dHTML are helping web designers to create Web pages that posses compact looks, downloads fast, have graphic effects, provides greater functionality and can hold much more text or content all at the same time. 10. Doesn’t require a java virtual machine. DHTML By Sohaib- UE Okara Campus 18
  • 19. Disadvantages of DHTML 1. Costly editing tools:- DHTML provides great functionality but the editors available for that in market are pretty expensive. E.g.:- Dreamweaver & fusion 2. Only new browser support DHTML:- DHTML is only supported by Netscape 4.0 or higher & internet explolor(IE) 4.0 or higher version. 3. Long and complex coding:- DHTML coding is long and complex only the expert JavaScript & HTML programmers can write them & edit them with good degree of functionality. 4. Browser support problem:- DHTML suffer from browser support problems for different browser. 5. Unprotected source code. DHTML By Sohaib- UE Okara Campus 19
  • 20. Thank you !! DHTML By Sohaib- UE Okara Campus 20