Preparing website for iPad users... html version

Posted on 2014-08-23
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" "">

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

    Accepted Solution

    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.

    LVL 33

    Author Comment

    by:Mike Eghtebas
    Hi Cd&,

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

    LVL 53

    Expert Comment

    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.

    LVL 33

    Author Comment

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


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
    Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
    This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now