Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > The right DOCTYPE?

Reply
Thread Tools

The right DOCTYPE?

 
 
MattB
Guest
Posts: n/a
 
      05-07-2007
I haven't given much thought to DOCTYPE before. I have a vague idea of
what it is and why it's there: to tell the browser what rules to follow
when rendering the page.

I have a ASP.net 1.1 application that has a little added JavaScript in
it, but is by no means what I'd consider JavaScript intensive. It makes
use of a stylesheet in fairly conservative ways and in general uses the
html generated by VS.NET 2003.

Now one of our clients says our doctype is out of date and "causing
problems". I haven't heard what the problems are, but thought I'd better
get some background on the subject.

Should I not be using the default DOCTYPE that VS.NET 2003 automatically
inserts? If not, what should I use (or how do I decide)? If so, then
what do I say to convince this client that it's OK?

Here's is what all the current pages have:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Thanks for any suggeastions or ideas!

Matt
 
Reply With Quote
 
 
 
 
Michael Nemtsev
Guest
Posts: n/a
 
      05-07-2007
Hello MattB,

DOCTYPE specify the version of HTML for browers
Read about it here http://htmlhelp.com/reference/html40/html/doctype.html

You need to use it to keep your html as much possible compliant to browsers

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

M> I haven't given much thought to DOCTYPE before. I have a vague idea
M> of what it is and why it's there: to tell the browser what rules to
M> follow when rendering the page.
M>
M> I have a ASP.net 1.1 application that has a little added JavaScript
M> in it, but is by no means what I'd consider JavaScript intensive. It
M> makes use of a stylesheet in fairly conservative ways and in general
M> uses the html generated by VS.NET 2003.
M>
M> Now one of our clients says our doctype is out of date and "causing
M> problems". I haven't heard what the problems are, but thought I'd
M> better get some background on the subject.
M>
M> Should I not be using the default DOCTYPE that VS.NET 2003
M> automatically inserts? If not, what should I use (or how do I
M> decide)? If so, then what do I say to convince this client that it's
M> OK?
M>
M> Here's is what all the current pages have:
M> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
M> Thanks for any suggeastions or ideas!
M>
M> Matt
M>


 
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
Dynamic Menu Items is not right aligned with Right to Left documen =?Utf-8?B?QmlzaG95?= ASP .Net 0 12-28-2006 11:39 AM
Right-Click With Mouse and Toolba Buttonsr Don't Work Right Bigfoot It Is Computer Support 0 10-30-2006 06:08 PM
Tool to enable Right click on pages where Right click is disabled tsteinke@gmail.com Computer Support 4 08-28-2005 11:53 PM
Tool to right click image in windows explorer and rotate image right or left 90 degrees siliconpi Digital Photography 2 11-29-2004 12:56 PM
pass the right form input to the right control Tom ASP .Net 0 12-11-2003 03:07 AM



Advertisments