+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

DHTML Interview Questions and Answers

1
What is DHTML? What are the features of DHTML?

DHTML stands for Dynamic HTML. The first thing that we need to clear about DHTML is that it is neither a language like HTML, JavaScript etc. nor a web standard. It is just a combination of HTML, JavaScript and CSS. It just uses these languages features to build dynamic web pages. DHTML is a feature of Netscape Communicator 4.0, and Microsoft Internet Explorer 4.0 and 5.0 and is entirely a "client-side" technology.

Features of DHTML:

  • Simplest feature is making the page dynamic.
  • Can be used to create animations, games, applications, provide new ways of navigating through web sites.
  • DHTML use low-bandwidth effect which enhance web page functionality.
  • Dynamic building of web pages is simple as no plug-in is required.
  • Facilitates the usage of events, methods and properties and code reuse.
2
What is the difference between DHTML and HTML?

Some main difference b/w DHTML(Dynamic HTML) and HTML(Hyper Text Markup Language)are given below.

  • Using DHTML we can use JavaScript and style sheets in our HTML page.
  • Using DHTML we can insert small animations and dynamic menus into our HTML page.
  • If use want that your web page display your DHTML effects(object or word can highlighted, larger,a different color etc) than you have to save your web page with .dhtml extension except .html or .htm .
3
What is XHTML? Why is XHTML needed? Advantages of using XHTML rather than HTML

XHTML stands for Extensible Hypertext Markup Language and is a cross between HTML and XML. It helps us to create better formatted code for site. It makes site more accessible.

Need for XHTML: XHTML has a more strict syntax rules in comparison of HTML. XHTML gives you a more consistent, well structured format so that your webpages can be easily parsed and processed by present and future web browsers. It also makes your website more easy to maintain, edit, convert and format in the long run.

Benefits:

  • XHTML documents are XML conforming. As such, they are readily viewed, edited, and validated with standard XML tools.
  • XHTML documents can be written to operate better than they did before in existing browsers as well as in new browsers.
  • XHTML documents can utilize applications like scripts and applets that rely upon either the HTML Document Object Model or the XML Document Object Model.
4
Tell me about technologies that we use in DHTML?

Some technologies that we used in DHTMl are given below:

  1. JavaScript
  2. HTML DOM
  3. HTML EVENT
  4. CSS
  1. JavaScript: It is an standard of scripting for HTML. Using JavaScript DHTML can control,access and manipulate HTML element.
  2. HTML DOM: It is an Document Object Model which is an W3C Standard for HTML.Using HTML DOM is used to define standard to set of objects and to access and manipulate them for HTML.Using HTML DOM, DHTML can access and manipulate HTML elements.
  3. HTML Events: It is an part of HTML DOM and used to handle HTML elements.We use DHTML with HTML Events to make web pages those perform action when event occour.
  4. CSS: It is an W3C standard style and layout model made only for HTML.
    DHTML use JavaScript and DOM to change position and style of HTML elements.
5
Which browsers support DHTML and how will non-supporting browsers handle DHTML?

Version of Netscape navigator and Internet Explorer higher than 4.0 or 4.0 supports DHTML in easy way. But as compared to both browsers Internet Explorer 4.0+ supports the DHTML in the best way.
DHTML includes JavaScript to make the page dynamic and regardless of which scripts is written for and the scripts are designed in such a way that it can be compatible with as many numbers of browsers as possible. The most important thing that must be kept in the mind is that we must test the code before running it over the server or making it live. Also we certainly cannot guarantee that all users will use the browser that will support the scripts.

Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US