Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Difference between DOCTYPE HTML 4.01 and XHTML 1.0

Reply
Thread Tools

Difference between DOCTYPE HTML 4.01 and XHTML 1.0

 
 
Tatyana
Guest
Posts: n/a
 
      08-08-2006
Hello,



I was wondering if anybody can help to distinguish the difference (for
ASP.NET pages) between



I've got JavaScript Menu which I have to plug-in to the master page.
Everything works fine except ALL Borders on the buttom and on the left side.

So I was trying to see what makes a difference and the DOCTYPE came up.

Now I wonder what is going to happen with my asp.net pages and what is not
going to work if I change DOCTYPE from HTML 4.01 to XHTML 1.0?





<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >

or <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Thank you,

Tatyana




 
Reply With Quote
 
 
 
 
Alan Silver
Guest
Posts: n/a
 
      08-08-2006
In article <(E-Mail Removed)>, Tatyana
<(E-Mail Removed)> writes
>Now I wonder what is going to happen with my asp.net pages and what is
>not going to work if I change DOCTYPE from HTML 4.01 to XHTML 1.0?


If you mean how the page is going to look in a browser, then you
probably won't see a whole lot of difference as XHTML 1.0 is (in simple
terms) just HTML 4.01 with some deprecated elements and attributes, and
a more strict approach to closing tags and case. Many browsers will
render the code just the same with either doctype.

A validator will give you a hard time as the syntax for the two are
different. You would need to clarify your question if you want a more
specific answer.

HTH

--
Alan Silver
(anything added below this line is nothing to do with me)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS Newbie - CSS Works With Invalid DOCTYPE. Fails With Valid DOCTYPE. Larry Lindstrom HTML 19 06-12-2012 02:07 PM
Struts and XHTML strict doctype John Java 1 01-13-2008 11:51 PM
Do I need <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ..... in asp.net 2.0 ? Rolf Welskes ASP .Net 6 08-24-2006 02:56 AM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
XHTML - Doctype and output johkar XML 3 10-09-2004 12:39 AM



Advertisments