Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2014-08-23
4
Medium Priority
?
189 Views
Last Modified: 2014-08-23
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
0
Comment
Question by:Mike Eghtebas
  • 2
  • 2
4 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 2000 total points
ID: 40280843
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
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 40280860
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
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40280900
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
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 40280905
Thank you very much for the additional information.

Mike
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question