android - Which markup language to use for the new Web site? (Desktop & Mobile) -


i need redesign old site , thinking best web markup language use. here 2 questions. please me find right answer both or of them:

  1. what's optimal web standard desktop users? html? xhtml? else? version of (e.g. "xhtml 1.0 transitional")?

  2. what optimal markup language mobile users? site i'm going redesign applications mobile devices. so, naturally have lot of mobile visitors. of devices android-based, ios-based blackberries, palm os , symbian devices. markup language should stick when i'll developing mobile version of site?

thanks great answers!

i avoid xhtml. xhtml has become dead end , in no way "better" or "stricter" html, plus ie still doesn't support properly. see example: http://www.webdevout.net/articles/beware-of-xhtml

the best supported standard html 4.01 strict.

there no need transitional newly created site.

you use "backwards compatible html5", 4.01 markup html5 doctype, in order ready if want use html5 features time. careful html5 elements, because ie doesn't support them (or fall properly), unless use javascript work-around.

the html5 doctype <!doctype html>. html5 comes in 2 syntax flavors, "html/sgml like" kind , "xhtml/xml" kind (called "xhtml5"). both kinds use same doctype, theoretically optional "xhtml" syntax, have browsers render in quicks mode, should avoided. browser distinguishes between 2 mime type of document, must application/xhtml+xml xhtml5. ie doesn't support mime type, not use xhtml5.

new css3 features shouldn't make problems, if use in way, site doesn't become unusable when not applied.

there no need special markup mobile browsers support html 4.01 quite fine. css media queries display content differently mobile browsers.

depending on amount of content, may make sense create separate site mobile browsers without content mobile browsers doesn't need, doesn't need downloaded, such flash. (again) there no need "special" html mobile browsers.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -