SlideShare a Scribd company logo
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

More Related Content

What's hot

Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
Himanshu Kumar
 
XPDDS18: CPUFreq in Xen on ARM - Oleksandr Tyshchenko, EPAM Systems
XPDDS18: CPUFreq in Xen on ARM - Oleksandr Tyshchenko, EPAM SystemsXPDDS18: CPUFreq in Xen on ARM - Oleksandr Tyshchenko, EPAM Systems
XPDDS18: CPUFreq in Xen on ARM - Oleksandr Tyshchenko, EPAM Systems
The Linux Foundation
 
Operating Systems Basics
Operating Systems BasicsOperating Systems Basics
Operating Systems Basics
nishantsri
 
Html introduction
Html introductionHtml introduction
Html introduction
Dalia Elbadry
 
Html css
Html cssHtml css
Html css
sloumaallagui1
 
The Linux Kernel Implementation of Pipes and FIFOs
The Linux Kernel Implementation of Pipes and FIFOsThe Linux Kernel Implementation of Pipes and FIFOs
The Linux Kernel Implementation of Pipes and FIFOs
Divye Kapoor
 
Chapter 9 -Multimedia on The Internet
Chapter 9 -Multimedia on The InternetChapter 9 -Multimedia on The Internet
Chapter 9 -Multimedia on The Internet
Pratik Pradhan
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
Seble Nigussie
 
DHTML - Events & Buttons
DHTML - Events  & ButtonsDHTML - Events  & Buttons
DHTML - Events & Buttons
Deep Patel
 
Implementation of Pipe in Linux
Implementation of Pipe in LinuxImplementation of Pipe in Linux
Implementation of Pipe in Linux
Tushar B Kute
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
Singsys Pte Ltd
 
4. linux file systems
4. linux file systems4. linux file systems
4. linux file systems
Marian Marinov
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
Sun Technlogies
 
Xhtml
XhtmlXhtml
Xhtml
Abdul Khan
 
Chapter 2 : TEXT
Chapter 2 : TEXTChapter 2 : TEXT
Chapter 2 : TEXT
azira96
 

What's hot (20)

Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
 
File Management
File ManagementFile Management
File Management
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
XPDDS18: CPUFreq in Xen on ARM - Oleksandr Tyshchenko, EPAM Systems
XPDDS18: CPUFreq in Xen on ARM - Oleksandr Tyshchenko, EPAM SystemsXPDDS18: CPUFreq in Xen on ARM - Oleksandr Tyshchenko, EPAM Systems
XPDDS18: CPUFreq in Xen on ARM - Oleksandr Tyshchenko, EPAM Systems
 
Operating Systems Basics
Operating Systems BasicsOperating Systems Basics
Operating Systems Basics
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Html css
Html cssHtml css
Html css
 
The Linux Kernel Implementation of Pipes and FIFOs
The Linux Kernel Implementation of Pipes and FIFOsThe Linux Kernel Implementation of Pipes and FIFOs
The Linux Kernel Implementation of Pipes and FIFOs
 
Chapter 9 -Multimedia on The Internet
Chapter 9 -Multimedia on The InternetChapter 9 -Multimedia on The Internet
Chapter 9 -Multimedia on The Internet
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
DHTML - Events & Buttons
DHTML - Events  & ButtonsDHTML - Events  & Buttons
DHTML - Events & Buttons
 
Implementation of Pipe in Linux
Implementation of Pipe in LinuxImplementation of Pipe in Linux
Implementation of Pipe in Linux
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 
Libre Office Writer Lesson 1
Libre Office Writer Lesson 1Libre Office Writer Lesson 1
Libre Office Writer Lesson 1
 
4. linux file systems
4. linux file systems4. linux file systems
4. linux file systems
 
HTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts BasicsHTML, CSS and Java Scripts Basics
HTML, CSS and Java Scripts Basics
 
Xhtml
XhtmlXhtml
Xhtml
 
Chapter 2 : TEXT
Chapter 2 : TEXTChapter 2 : TEXT
Chapter 2 : TEXT
 
Dhtml ppt (2)
Dhtml ppt (2)Dhtml ppt (2)
Dhtml ppt (2)
 

Viewers also liked

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
Dynamic HTMLDynamic HTML
Dynamic HTML
Vinil Patel
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event Model
Reem Alattas
 
DHTML
DHTMLDHTML
DHTML - Dynamic HTML
DHTML - Dynamic HTMLDHTML - Dynamic HTML
DHTML - Dynamic HTML
Reem Alattas
 
Dreamweawer
DreamweawerDreamweawer
Dreamweawer
aditi sharma
 
TinyMCE: WYSIWYG editor 2010-12-08
TinyMCE: WYSIWYG editor 2010-12-08TinyMCE: WYSIWYG editor 2010-12-08
TinyMCE: WYSIWYG editor 2010-12-08
Andy Gelme
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Prateek Parimal
 
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 documents
Wakil Kumar
 
Html5 Canvas Drawing and Animation
Html5 Canvas Drawing and AnimationHtml5 Canvas Drawing and Animation
Html5 Canvas Drawing and AnimationMindfire Solutions
 
WYSIWYG Is a Lie
WYSIWYG Is a LieWYSIWYG Is a Lie
WYSIWYG Is a Lie
arborwebsolutions
 
Normalization
NormalizationNormalization
Normalization
Jigisha Pandya
 
Penerbitan video korporat
Penerbitan video korporatPenerbitan video korporat
Penerbitan video korporat
Hazrul Halim
 
Introduction to Dreamweaver
Introduction to DreamweaverIntroduction to Dreamweaver
Introduction to Dreamweaver
Sarah Bombich
 

Viewers also liked (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
 
Dhtml
DhtmlDhtml
Dhtml
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event Model
 
DHTML
DHTMLDHTML
DHTML
 
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
 

Similar to 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
 
HTML_DOM
HTML_DOMHTML_DOM
HTML_DOM
BIT DURG
 
02 From HTML tags to XHTML
02 From HTML tags to XHTML02 From HTML tags to XHTML
02 From HTML tags to XHTML
Rich Dron
 
Understanding the dom by Benedict Ayiko
Understanding the dom by Benedict AyikoUnderstanding the dom by Benedict Ayiko
Understanding the dom by Benedict Ayiko
Damalie Wasukira
 
Digital Marketing Company
Digital Marketing CompanyDigital Marketing Company
Digital Marketing Company
Payal9675
 
dot net unit-1.pdf
dot net unit-1.pdfdot net unit-1.pdf
dot net unit-1.pdf
Prof. Dr. K. Adisesha
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSS
Timo Herttua
 
WEB TECHNOLOGY Unit-4.pptx
WEB TECHNOLOGY Unit-4.pptxWEB TECHNOLOGY Unit-4.pptx
WEB TECHNOLOGY Unit-4.pptx
karthiksmart21
 
WEB Module 1.pdf
WEB Module 1.pdfWEB Module 1.pdf
WEB Module 1.pdf
IbrahimBadsha1
 
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
Nagamurali Reddy
 
Tech talk polymer
Tech talk polymerTech talk polymer
Tech talk polymer
Yanuar W
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3
inshu1890
 
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
NANDINI SHARMA
 
1_Intro_toHTML.ppt
1_Intro_toHTML.ppt1_Intro_toHTML.ppt
1_Intro_toHTML.ppt
benjaminonum1
 
Web Components
Web ComponentsWeb Components
Web Components
FITC
 
Web Design
Web DesignWeb Design
Web Design
Rawshan Ali
 
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
Shean McManus
 
Web Components
Web ComponentsWeb Components
Web Components
FITC
 
Slides 1 - Internet and Web
Slides 1 - Internet and WebSlides 1 - Internet and Web
Slides 1 - Internet and Web
Massimo Callisto
 

Similar to 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
 

Recently uploaded

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
goswamiyash170123
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Landownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptxLandownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptx
JezreelCabil2
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
AG2 Design
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdfMASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
MASS MEDIA STUDIES-835-CLASS XI Resource Material.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Landownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptxLandownership in the Philippines under the Americans-2-pptx.pptx
Landownership in the Philippines under the Americans-2-pptx.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
Delivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and TrainingDelivering Micro-Credentials in Technical and Vocational Education and Training
Delivering Micro-Credentials in Technical and Vocational Education and Training
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

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