Latest News

16-July-2008
New design concept for vishwebdesign.com Well, yeah..I'm thinking of either modifying the existing template or create a new design for vishwebdesign. I'm short of ideas these days. I'm also thinking of mixing things up, using some new technologies, implementing mootools or yui maybe. I'll give it some time..
Vishal Beersye

XHTML Articles at vishwebdesign Home for Vishal Beersye on web

Just as a note for people who didn’t understand what I meant by XHTML, well here are some of major differences between html and xhtml.

  • XHTML elements have to be properly nested. For example, something like <p><b>vishwebdesign</p></b> may be acceptable in html 4.0, but it will not be valid xhtml. The correct way to write it is <p><b>vishwebdesign</b></p>
  • All elements and tags must be in lowercase.
  • The elements must have one root ‘html’ element.

XHTML takes HTML as defined in version 4.01 and applies the rules of well-formed XML documents.

Go through my articles section below to know more about xhtml and css designing.

xhtml versus html

Cross-browser support can sometimes be a very troublesome task. When we have to slice templates, we must take into consideration that there are differences in browsers' intepretation and we must not indulgde in hacking our css codes just to have pixel-perfect designs.

  • XHTML elements must always be closed. Even the empty elements like the image or input element must be closed with ‘/>’. For instance, you can write <img src=”image1.gif”> in html 4.0 and it’s accepted, but not for xhtml. In XHTML, the image element tag must always be closed; <img src=”image1.gif” alt=”vishal” />. Note that all images must be given an alternative text according to the web standards.

XHTML 1.0 is the first document type in the XHTML family.

Visit my articles section to know more about how to avoid complicating your xhtml markup.

Useful CSS & XHTML Articles and Links