Preparing asp.net website for iPad users... html version

When I started my project, the default doctype in visual studio 2010 was set to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Open in new window

I missed setting it to a more recent version at the time.

Question 1: Would it be sufficient if I change xhtml1-transitional.dtd to xhtml4-restrict.dtd for example in the line above?

Question 2: What version of html is required in order the iPad users can view the site?

Thank you
LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?
 
COBOLdinosaurCommented:
If you want to support across modern devices, then you should be going to HTML5 for the doctype, which may require the elimination of some of the attributes that were supported in xhtml, but are obsoleted in HTML5. For legacy support you can include a shiv that will allow older version of browsers to render at an acceptable level.

I am not sure that xhtml4-restrict.dtd is a valid doctype can you give me a reference link where I can see its specification?  If it is some kind of VS or .net specific doctype then it is not likely that ipad browsers will understand it.

Cd&
0
 
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
Hi Cd&,

I got it from http://validator.w3.org, doc type drop box : HTML 4.01 Strict. Sorry for messing up its syntax.

Mike
0
 
COBOLdinosaurCommented:
Okay, I thought I had missed a memo. ;^)

Going forward, the only path that looks like it is going to be consistent across all device and browser types for general purpose presentation is HTML5. All major browser manufactures have adopted and embraced the standard and are working hard to produce consistent results.

Cd&
0
 
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
Thank you very much for the additional information.

Mike
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.