Monday, September 21, 2009

DHTML and XHTML

DHTML or Dynamic HTML is the combination of HTML and client side script(Javascript). DHTML makes the website more interactive and animations also.
<br/>With the use of javascript we can achieve rollover buttons, dropdown menus, form validations and interactive web page. And finally it has two powerfull branches:
Ajax
Jquery

DHTML References sites :

www.w3schools.com/Dhtml/default.asp
www.dynamicdrive.com/
http://www.dhtmlgoodies.com/
www.javascriptkit.com/

XHTML is a stricter form of HTML and as such is a subset of XML which is an extremely useful, powerful and very strict way of marking up pure data. The headers you sometimes see along with XHTML code declare what exactly the rules are..

for instance, that <a> is an anchor. In XML you can declare your own rules.XHTML is significantly better than HTML, as it encourages good practice. Where it doesn't allow things that HTML does, it's likely there's a good reason.. for instance
not using target="_blank". These things then in turn impact on the sites accessibility, consistency, search engine performance etc etc.

Some of the differences while coding XHTML are ...

Instead of <br> we'll use <br />

and for non closing tags like <img> we'll finish it up with <img />.

All the tags must be in small caps, properly nested and finally the tags must be closed.

Below is the mandatory XHTML elements

<!DOCTYPE Doctype goes here>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title goes here</title>
</head>

<body>
</body>

</html>


No comments: