a web hosting, web design, sell domain company
Website Tutorial
· Html
· XHtml
· Css
· Javascript
· Dreamweaver
· Fireworks
· Flash
· Photoshop
· Internet
· Web Hosting
· Web Design Tips
· Domain Name
· Others
Web page design and website build tutorial

What is XHTML?

XHTML is the next generation of HTML. Move up to the new way of creating a web page and web site.
XHTML - eXtensible HyperText Markup Language.

The xmlns attribute is required in XHTML but not in HTML. However, the validator on w3.org does not complain when this attribute is missing from the <html> tag in an XHTML document. That is because "xmlns=http://www.w3.org/1999/xhtml" is a fixed value and will be added to the <html> tag even if you do not include it.

XHTML is less flexible than HTML. Most of the web browsers will present a webpage coded in HTML even if there may be some small dissimilarity in the code. But XHTML is stricter than html in code format.

We list some examples of difference between Xhtml and Html ?

1. When you use more than one tag together, which is called nested tags. These two nested tags should be in order. For example, you might want to present a section of text both italic and bold.
<b><i>Here Text Content </i></b> Correct

<b><i>Here Text Content </b></i> Wrong
2. You should always put attribute values within quotation marks when writing in XHTML.

Height ="790" Correct

Height = 790 Wrong

3. When adding Css style or Script code to your XHTML pages, you should use the CDATA code.

<style type="text/css">
<style type="text/css">
css code
Correct Wrong
4. XHTML code is case-sensitive. You should put all of XHTML element and attribute names in lowercase characters.
<b>Here Text Content</b> Correct

<B>Here Text Content </B> Wrong

administrator loginAll prices are GST Included Copyright © 2000 -2007 Netsky.biz   All Rights Reserved