SlideShare a Scribd company logo
By: Daniel Bragais
   DHTML simply means dynamic
    HTML.



Dynamic = changes each time it is
  viewed, constantly changing. Like a
  flowing river. 
   It is not a language, in the
    sense HTML is a
    Language that creates
    Web pages or that
    JavaScript create codes
    that add interactivity to
    HTML documents.
   Instead, DHTML is a collection
    of technologies that supports
    HTML and extends the
    interactive capabilities of
    browsers.
   Remember that HTML is a Static
    and is mainly a language for
    Structuring and presenting Web
    page content. Web pages only
    acquire interactivity when
    JavaScript codes are introduced,
    for example
•    Some of the most
    commonly used
    technologies include

   JavaScript
    CSS
   Document Object Model(DOM)
   XHTML.
   Therefore, DHTML does the
    following:

   Works with JavaScript
   Works with Data Object Model
    (DOM)
   Works with CSS
   Combines HTML with JavaScript
Document Object Model
       Provides a
way to TREAT individual
       elements in

      HTML
       as objects.
   You can also think of DOM as a map
    of your HTML document, with each
    element acting as a marker. Once that
    marker is set into place, it becomes
    easy for JavaScript to work on this
    marker, communicate with it, and get
    feedback from it.
HTML DOM Tree
   Since HTML provides structures for
    element in your Webpage. DOM also
    recognizes the structure of an HTML
    document. As HTML elements may
    be placed within other elements,
    DOM reads the HTML structure as a
    map. It sees the map as composed of
    sections, and within each section are
    subsections and their elements.
How to Set Up a Document Object
Consider each element in your HTML as
  an Object. DOM reads each HTML
  element as a unique object and as a
  node within your structure. However,
  to set an element as a document you
  must give it its unique identity by
  using ID attribute. This can be done
  This Ways:
   IDs are mainly used in HTML for
    layout purposes and to identify the
    unique elements in your HTML code.
    Because it is a unique identifier, each
    ID can be used only once in the page
    in defining specific elements.

                 id
    Specifies a unique id for the element.
    Naming rules: Must contain at least
    one character

    Must not contain any space characters

    In HTML, all values are case-
    insensitive
Syntax

<element   id="id">
   Definition and Usage
   The getElementById() method
    accesses the first element with the
    specified id.



   Syntax
   document.getElementById("id")
   javascript document.getelementbyid
   If you want to quickly access the
    value of an HTML input give it
    an id to make your life a lot easier.
    This small script below will check to
    see if there is any text in the text field
    "myText". The argument
    that getElementById requires is
    the id of the HTML element you wish
    to utilize.
   JavaScript Code:

   <script type="text/javascript"> function
    notEmpty(){ var myTextField =
    document.getElementById('myText');
    if(myTextField.value != "") alert("You
    entered: " + myTextField.value) else
    alert("Would you please enter some text?") }
    </script> <input type='text' id='myText' />
    <input type='button' onclick='notEmpty()'
    value='Form Checker' />
   document.getElementById returned a
    reference to our HTML
    element myText. We stored this
    reference into a variable, myTextField,
    and then used the valueproperty that
    all input elements have to use to grab
    the value the user enters.
   There are other ways to accomplish
    what the above script does, but this is
    definitely a straight-forward and
    browser-compatible approach.
Thank
         you!!!
       dan_brgs87@yahoo.com

www.codecademy.com/groups/danlike
 dojo/invite/7e343de793e7752aabb734
             dc624eb319

More Related Content

What's hot

JavaScript & Dom Manipulation
JavaScript & Dom ManipulationJavaScript & Dom Manipulation
JavaScript & Dom Manipulation
Mohammed Arif
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
Amit Tyagi
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
ShahDhruv21
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
Amit Tyagi
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript Programming
Sehwan Noh
 
Javascript functions
Javascript functionsJavascript functions
Javascript functions
Alaref Abushaala
 
Html forms
Html formsHtml forms
Introduction to the DOM
Introduction to the DOMIntroduction to the DOM
Introduction to the DOM
tharaa abu ashour
 
Javascript
JavascriptJavascript
Javascript
mussawir20
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
Biswadip Goswami
 
JavaScript - Chapter 11 - Events
 JavaScript - Chapter 11 - Events  JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events
WebStackAcademy
 
JavaScript: Events Handling
JavaScript: Events HandlingJavaScript: Events Handling
JavaScript: Events Handling
Yuriy Bezgachnyuk
 
jQuery
jQueryjQuery
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
Knoldus Inc.
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
Arulmurugan Rajaraman
 
presentation in html,css,javascript
presentation in html,css,javascriptpresentation in html,css,javascript
presentation in html,css,javascript
FaysalAhammed5
 

What's hot (20)

Html
HtmlHtml
Html
 
JavaScript & Dom Manipulation
JavaScript & Dom ManipulationJavaScript & Dom Manipulation
JavaScript & Dom Manipulation
 
Introduction to Javascript
Introduction to JavascriptIntroduction to Javascript
Introduction to Javascript
 
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
 
Dom
DomDom
Dom
 
Introduction to CSS
Introduction to CSSIntroduction to CSS
Introduction to CSS
 
JavaScript Programming
JavaScript ProgrammingJavaScript Programming
JavaScript Programming
 
Js ppt
Js pptJs ppt
Js ppt
 
Javascript functions
Javascript functionsJavascript functions
Javascript functions
 
Html forms
Html formsHtml forms
Html forms
 
Introduction to the DOM
Introduction to the DOMIntroduction to the DOM
Introduction to the DOM
 
Javascript
JavascriptJavascript
Javascript
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
 
Java script
Java scriptJava script
Java script
 
JavaScript - Chapter 11 - Events
 JavaScript - Chapter 11 - Events  JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events
 
JavaScript: Events Handling
JavaScript: Events HandlingJavaScript: Events Handling
JavaScript: Events Handling
 
jQuery
jQueryjQuery
jQuery
 
Introduction of Html/css/js
Introduction of Html/css/jsIntroduction of Html/css/js
Introduction of Html/css/js
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
 
presentation in html,css,javascript
presentation in html,css,javascriptpresentation in html,css,javascript
presentation in html,css,javascript
 

Viewers also liked

Html.ppt
Html.pptHtml.ppt
Html.ppt
Sunil Thakur
 
Dhtml
DhtmlDhtml
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
rahul kundu
 
DOM ( Document Object Model )
DOM ( Document Object Model )DOM ( Document Object Model )
DOM ( Document Object Model )ITSTB
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Modelchomas kandar
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
www.netgains.org
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
MayaLisa
 

Viewers also liked (11)

Html.ppt
Html.pptHtml.ppt
Html.ppt
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Dhtml
DhtmlDhtml
Dhtml
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
 
DOM ( Document Object Model )
DOM ( Document Object Model )DOM ( Document Object Model )
DOM ( Document Object Model )
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 

Similar to Introduction to DOM

Digital Marketing Company
Digital Marketing CompanyDigital Marketing Company
Digital Marketing Company
Payal9675
 
DOM(Document Object Model) in javascript
DOM(Document Object Model) in javascriptDOM(Document Object Model) in javascript
DOM(Document Object Model) in javascript
Rashmi Mishra
 
Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2
GDSCUniversitasMatan
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
Ahmad Al-ammar
 
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
 
Html tutorials-infotech aus
Html tutorials-infotech ausHtml tutorials-infotech aus
Html tutorials-infotech aus
Nilesh Pujara
 
Presentation
PresentationPresentation
Presentation
Chetan Kataria
 
Web Design & Development - Session 2
Web Design & Development - Session 2Web Design & Development - Session 2
Web Design & Development - Session 2
Shahrzad Peyman
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
Alisha Kamat
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
GDSCVJTI
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
Alisha Kamat
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
Leo Mark Villar
 
Html Guide
Html GuideHtml Guide
Html Guide
Jspider - Noida
 
Html
HtmlHtml
19ESKIT058_5thSem.pptx
19ESKIT058_5thSem.pptx19ESKIT058_5thSem.pptx
19ESKIT058_5thSem.pptx
DevanshuSoni7
 
Introduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and JqueryIntroduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and Jquery
valuebound
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
Jesus Cortes
 
CreatingWebPages-Part1.ppt
CreatingWebPages-Part1.pptCreatingWebPages-Part1.ppt
CreatingWebPages-Part1.ppt
HamzaAhmad861123
 

Similar to Introduction to DOM (20)

Digital Marketing Company
Digital Marketing CompanyDigital Marketing Company
Digital Marketing Company
 
DOM(Document Object Model) in javascript
DOM(Document Object Model) in javascriptDOM(Document Object Model) in javascript
DOM(Document Object Model) in javascript
 
Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2Bootcamp - Web Development Session 2
Bootcamp - Web Development Session 2
 
Html & Html5 from scratch
Html & Html5 from scratchHtml & Html5 from scratch
Html & Html5 from scratch
 
Understanding the dom by Benedict Ayiko
Understanding the dom by Benedict AyikoUnderstanding the dom by Benedict Ayiko
Understanding the dom by Benedict Ayiko
 
Html tutorials-infotech aus
Html tutorials-infotech ausHtml tutorials-infotech aus
Html tutorials-infotech aus
 
Presentation
PresentationPresentation
Presentation
 
Web Design & Development - Session 2
Web Design & Development - Session 2Web Design & Development - Session 2
Web Design & Development - Session 2
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Introduction to Web Development.pptx
Introduction to Web Development.pptxIntroduction to Web Development.pptx
Introduction to Web Development.pptx
 
Dom
DomDom
Dom
 
Computer fundamentals-internet p2
Computer fundamentals-internet p2Computer fundamentals-internet p2
Computer fundamentals-internet p2
 
Html Guide
Html GuideHtml Guide
Html Guide
 
Html
HtmlHtml
Html
 
19ESKIT058_5thSem.pptx
19ESKIT058_5thSem.pptx19ESKIT058_5thSem.pptx
19ESKIT058_5thSem.pptx
 
Introduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and JqueryIntroduction to Html5, css, Javascript and Jquery
Introduction to Html5, css, Javascript and Jquery
 
Html5 - Tutorial
Html5 - TutorialHtml5 - Tutorial
Html5 - Tutorial
 
Html5 tutorial
Html5 tutorialHtml5 tutorial
Html5 tutorial
 
CreatingWebPages-Part1.ppt
CreatingWebPages-Part1.pptCreatingWebPages-Part1.ppt
CreatingWebPages-Part1.ppt
 

More from Daniel Bragais

Deped certificate
Deped certificateDeped certificate
Deped certificate
Daniel Bragais
 
Mock Calls for call center practice
Mock Calls for call center practiceMock Calls for call center practice
Mock Calls for call center practice
Daniel Bragais
 
Reviewer Let professional education 13
Reviewer Let professional education 13Reviewer Let professional education 13
Reviewer Let professional education 13
Daniel Bragais
 
Reviewer LET professional education 12
Reviewer LET professional education 12Reviewer LET professional education 12
Reviewer LET professional education 12
Daniel Bragais
 
Program for investiture 2016 tagalog version
Program for investiture 2016 tagalog versionProgram for investiture 2016 tagalog version
Program for investiture 2016 tagalog version
Daniel Bragais
 
English Examination Philippines
English Examination PhilippinesEnglish Examination Philippines
English Examination Philippines
Daniel Bragais
 
Program for investiture tagalog version Script and Spiel
Program for investiture tagalog version Script and SpielProgram for investiture tagalog version Script and Spiel
Program for investiture tagalog version Script and Spiel
Daniel Bragais
 
Multiple intelligence - Howard Gardner
Multiple intelligence - Howard GardnerMultiple intelligence - Howard Gardner
Multiple intelligence - Howard Gardner
Daniel Bragais
 
English 7 monthly test
English 7  monthly testEnglish 7  monthly test
English 7 monthly test
Daniel Bragais
 
Benefits of marijuana cannabis to chemotherapy (thesis)
Benefits of marijuana cannabis to chemotherapy (thesis)Benefits of marijuana cannabis to chemotherapy (thesis)
Benefits of marijuana cannabis to chemotherapy (thesis)
Daniel Bragais
 
Search warrant
Search warrantSearch warrant
Search warrant
Daniel Bragais
 
Republic act 9262 anti vawc act
Republic act 9262 anti vawc actRepublic act 9262 anti vawc act
Republic act 9262 anti vawc act
Daniel Bragais
 
Casa Boy Scout of the Philippines investiture 2014
Casa Boy Scout of the Philippines investiture 2014Casa Boy Scout of the Philippines investiture 2014
Casa Boy Scout of the Philippines investiture 2014
Daniel Bragais
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra Drills
Daniel Bragais
 
What is good governance
What is good governanceWhat is good governance
What is good governance
Daniel Bragais
 
Deped K12
Deped K12Deped K12
Deped K12
Daniel Bragais
 
New teachers orientation
New teachers orientationNew teachers orientation
New teachers orientationDaniel Bragais
 
Strategic intervention materials (1) edited
Strategic intervention materials (1) editedStrategic intervention materials (1) edited
Strategic intervention materials (1) editedDaniel Bragais
 
Report in educational leadership
Report in educational leadershipReport in educational leadership
Report in educational leadershipDaniel Bragais
 

More from Daniel Bragais (20)

Deped certificate
Deped certificateDeped certificate
Deped certificate
 
Mock Calls for call center practice
Mock Calls for call center practiceMock Calls for call center practice
Mock Calls for call center practice
 
Reviewer Let professional education 13
Reviewer Let professional education 13Reviewer Let professional education 13
Reviewer Let professional education 13
 
Reviewer LET professional education 12
Reviewer LET professional education 12Reviewer LET professional education 12
Reviewer LET professional education 12
 
Program for investiture 2016 tagalog version
Program for investiture 2016 tagalog versionProgram for investiture 2016 tagalog version
Program for investiture 2016 tagalog version
 
English Examination Philippines
English Examination PhilippinesEnglish Examination Philippines
English Examination Philippines
 
Program for investiture tagalog version Script and Spiel
Program for investiture tagalog version Script and SpielProgram for investiture tagalog version Script and Spiel
Program for investiture tagalog version Script and Spiel
 
Multiple intelligence - Howard Gardner
Multiple intelligence - Howard GardnerMultiple intelligence - Howard Gardner
Multiple intelligence - Howard Gardner
 
English 7 monthly test
English 7  monthly testEnglish 7  monthly test
English 7 monthly test
 
Benefits of marijuana cannabis to chemotherapy (thesis)
Benefits of marijuana cannabis to chemotherapy (thesis)Benefits of marijuana cannabis to chemotherapy (thesis)
Benefits of marijuana cannabis to chemotherapy (thesis)
 
Search warrant
Search warrantSearch warrant
Search warrant
 
Republic act 9262 anti vawc act
Republic act 9262 anti vawc actRepublic act 9262 anti vawc act
Republic act 9262 anti vawc act
 
Casa Boy Scout of the Philippines investiture 2014
Casa Boy Scout of the Philippines investiture 2014Casa Boy Scout of the Philippines investiture 2014
Casa Boy Scout of the Philippines investiture 2014
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra Drills
 
What is good governance
What is good governanceWhat is good governance
What is good governance
 
Deped K12
Deped K12Deped K12
Deped K12
 
New teachers orientation
New teachers orientationNew teachers orientation
New teachers orientation
 
Ra no.7722
Ra no.7722Ra no.7722
Ra no.7722
 
Strategic intervention materials (1) edited
Strategic intervention materials (1) editedStrategic intervention materials (1) edited
Strategic intervention materials (1) edited
 
Report in educational leadership
Report in educational leadershipReport in educational leadership
Report in educational leadership
 

Recently uploaded

State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 

Recently uploaded (20)

State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 

Introduction to DOM

  • 2. DHTML simply means dynamic HTML. Dynamic = changes each time it is viewed, constantly changing. Like a flowing river. 
  • 3. It is not a language, in the sense HTML is a Language that creates Web pages or that JavaScript create codes that add interactivity to HTML documents.
  • 4. Instead, DHTML is a collection of technologies that supports HTML and extends the interactive capabilities of browsers.
  • 5. Remember that HTML is a Static and is mainly a language for Structuring and presenting Web page content. Web pages only acquire interactivity when JavaScript codes are introduced, for example
  • 6. Some of the most commonly used technologies include  JavaScript  CSS  Document Object Model(DOM)  XHTML.
  • 7. Therefore, DHTML does the following:  Works with JavaScript  Works with Data Object Model (DOM)  Works with CSS  Combines HTML with JavaScript
  • 8. Document Object Model Provides a way to TREAT individual elements in HTML as objects.
  • 9. You can also think of DOM as a map of your HTML document, with each element acting as a marker. Once that marker is set into place, it becomes easy for JavaScript to work on this marker, communicate with it, and get feedback from it.
  • 11. Since HTML provides structures for element in your Webpage. DOM also recognizes the structure of an HTML document. As HTML elements may be placed within other elements, DOM reads the HTML structure as a map. It sees the map as composed of sections, and within each section are subsections and their elements.
  • 12. How to Set Up a Document Object
  • 13. Consider each element in your HTML as an Object. DOM reads each HTML element as a unique object and as a node within your structure. However, to set an element as a document you must give it its unique identity by using ID attribute. This can be done This Ways:
  • 14. IDs are mainly used in HTML for layout purposes and to identify the unique elements in your HTML code. Because it is a unique identifier, each ID can be used only once in the page in defining specific elements.
  • 15. id Specifies a unique id for the element. Naming rules: Must contain at least one character  Must not contain any space characters  In HTML, all values are case- insensitive
  • 17. Definition and Usage  The getElementById() method accesses the first element with the specified id.  Syntax  document.getElementById("id")
  • 18. javascript document.getelementbyid  If you want to quickly access the value of an HTML input give it an id to make your life a lot easier. This small script below will check to see if there is any text in the text field "myText". The argument that getElementById requires is the id of the HTML element you wish to utilize.
  • 19. JavaScript Code:  <script type="text/javascript"> function notEmpty(){ var myTextField = document.getElementById('myText'); if(myTextField.value != "") alert("You entered: " + myTextField.value) else alert("Would you please enter some text?") } </script> <input type='text' id='myText' /> <input type='button' onclick='notEmpty()' value='Form Checker' />
  • 20.
  • 21.
  • 22.
  • 23. document.getElementById returned a reference to our HTML element myText. We stored this reference into a variable, myTextField, and then used the valueproperty that all input elements have to use to grab the value the user enters.  There are other ways to accomplish what the above script does, but this is definitely a straight-forward and browser-compatible approach.
  • 24. Thank you!!! dan_brgs87@yahoo.com www.codecademy.com/groups/danlike dojo/invite/7e343de793e7752aabb734 dc624eb319