Is there a difference?

Reply

Join Date: Jun 2008
Posts: 52
Reputation: Tony0930 is an unknown quantity at this point 
Solved Threads: 0
Tony0930 Tony0930 is offline Offline
Junior Poster in Training

Is there a difference?

 
0
  #1
Aug 21st, 2008
Does anyone know if I can head directly for XHTML without learning HTML?
Is there a difference?
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 302
Reputation: sreein1986 is an unknown quantity at this point 
Solved Threads: 33
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz

Re: Is there a difference?

 
0
  #2
Aug 21st, 2008
I think there is a lot difference between XHTML and HTML
Thanx,
Shiriyal

http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 5
Reputation: steve136 is an unknown quantity at this point 
Solved Threads: 0
steve136 steve136 is offline Offline
Newbie Poster

Re: Is there a difference?

 
0
  #3
Aug 21st, 2008
There is quite a few differences in the markup of XHTML compared to HTML, but most are simple to get used to, ie you need to use lowercase letters in XHTML and use closing tags properly.

eg:
<BODY>
<P>your text here</P>
</BODY> (This is incorrect xhtml)

<body>
<p>your text here</p>
</body> (this is correct)

If it is a case of learning one of them correctly I would suggest XHTML, probably starting with XHTML 1.0 Transitional as XHTML is now the W3C compliant standard. The advantages of XHTML 1.0 Transitional is that it allows a lot of things like iframes and opening links in new windows that the Strict version will not. Unless you really want to give yourself a headache I would stay away from XHTML 1.1
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 55
Reputation: MelechM is an unknown quantity at this point 
Solved Threads: 6
MelechM MelechM is offline Offline
Junior Poster in Training

Re: Is there a difference?

 
0
  #4
Sep 8th, 2008
They are pretty much the same except that XHTML is more strict and must be lower case. Also you have to end and open tags, where you want them to end. I recommend XHTML as it's just good practice to make your code like that.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,076
Reputation: Shanti Chepuru is on a distinguished road 
Solved Threads: 98
Shanti Chepuru's Avatar
Shanti Chepuru Shanti Chepuru is offline Offline
Veteran Poster

Re: Is there a difference?

 
0
  #5
Sep 15th, 2008
If you’ve mastered HTML, you’re 90% of the way towards using XHTML. They’re actually very much the same thing—tag-based markup languages used to display Web pages. The difference is only seen by the people creating the pages (Web designers, programmers, etc.) and focuses on “forgivability”— HTML allows for some ugly code (mixed-case tags like <BoDy>, improperly nested elements, and unclosed tags), while XHTML does not. If you write HTML, it’s probably a good idea to start using XHTML practices anyway.

In XHTML, all tags must be lowercase.
In XHTML, all tags must be closed.
In XHTML, tags must be properly nested.

the above are not in html...

And,

* XHTML must be served with an XML MIME type, such as application/xml or application/xhtml+xml.
* HTML must be served as text/html.

It is the MIME type that determines what type of document you are using. If you use attempt to send XHTML as text/html, you are actually just using HTML, possibly with syntax errors.

Technically, according to the spec, XHTML 1.0 is allowed to be served as text/html. But, due to the above reason, such a document is considered to be an HTML document, not an XHTML document.

see it for reference:
http://wiki.whatwg.org/wiki/HTML_vs._XHTML
Last edited by Shanti Chepuru; Sep 15th, 2008 at 4:10 am.
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 18
Reputation: digitaldesperad is an unknown quantity at this point 
Solved Threads: 1
digitaldesperad digitaldesperad is offline Offline
Newbie Poster

Re: Is there a difference?

 
0
  #6
Sep 23rd, 2008
HTML is rapidly being replaced by XHTML. The differences are very minor, but the results of switching can be worth the effort. The primary benefit is that XHTML is more widely accepted in non "computer" devices like cell phone, palm devices and other scaled down browsers. This is commonly called portability between devices.
XHTML is also said to be extensible, which is the fancy way of saying the new tags can be added without a new document type declaration.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 213
Reputation: nikesh.yadav is an unknown quantity at this point 
Solved Threads: 17
nikesh.yadav's Avatar
nikesh.yadav nikesh.yadav is offline Offline
Posting Whiz in Training

Re: Is there a difference?

 
0
  #7
Sep 29th, 2008
there are difference but i think a newbie does not got any difference.
Help as an alias

I think programming is great................
Tour Travel weblink by me and about Tour ,
Go To My Home Page and I m in Webdevelopment.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC