Home:ALL Converter>Which standard (HTML/XHTML ) to learn to be ready to use HTML5 when it happens?

Which standard (HTML/XHTML ) to learn to be ready to use HTML5 when it happens?

Ask Time:2011-01-17T18:13:35         Author:kickingPair

Json Formatter

I am really new to this so please forgive the basicness of my question...

I want to learn to design websites and I have a program which I am planning to learn (Dreamweaver CS5) using tutorials from Lynda.com. However on the tutorial it says you should have a good grasp of HTML and CSS before starting Dreamweaver.

I looked at the Lynda.com video for HTML but it is all focused on XHTML. http://www.lynda.com/tutorial/47603

Now I am a bit confused. I heard a new standard was coming in (HTML5). If I learn XHTML - does that mean that I will then have to go back at a later date and learn HTML4 so that I can then catch up and learn HTML5 or will I be able to use my XHTML knowledge and add the future HTML5 code to it?

For example there is a Lynda video on HTML5 but the author says you need a knowledge of html before you can watch it.

Do you think the Lynda.com video on XHTML/HTML is a good place to start or do I need to get a book on HTML4 instead?

If you were starting out now would you learn HTML4 or XHTML?

Thanks

Author:kickingPair,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/4711988/which-standard-html-xhtml-to-learn-to-be-ready-to-use-html5-when-it-happens
Matías Fidemraizer :

XHTML, absolutely.\n\nLast recommended HTML version was 4.x, and it's from 90s era.\n\nLearn XHTML as much as possible, and try to use strict versions.",
2011-01-17T10:16:05
Hawxby :

I agree with @Matías, if only because of it's strictness which will likely result in cleaner code in the long run. That said, porting from one html version to another shouldn't be too difficult regardless of which one you choose.",
2011-01-17T10:23:44
Rodney Beede :

I find that when programming the use of XHTML is nice because it allows me to catch errors in my markup at compile time instead of some obscure bug showing itself way later when I modify a page.\n\nThe whole lack of XHTML 1.1 support in IE has been a pain, but there are work arounds such as XSL transformations and the such. IE9 has finally added support.\n\nOnce (X)HTML5 support becomes strong in the major browsers I intend on using XHTML5 in any web projects I do for work. Supporting legacy IE versions will still be a pain, but it will be manageable.",
2011-05-17T14:49:38
orlp :

I would learn HTML4.01, but only because I detest XHTML.\n\nIt doesn't matter that much, making the port from (X)HTML x.xx to (X)HTML y.yy is not that hard. You'll have a few pitfalls, but that's all.\n\nOn the other hand, HTML5 is quite different and you can start learning it already. It's already happening.\n\nWhatever you learn, make sure you learn the Strict version.",
2011-01-17T10:17:24
benhowdle89 :

Check this out for future proofing: http://blog.twostepmedia.co.uk/css3-still-novelty-or-usable-in-everyday-web-development/ \n\nTo the O/P, learn the basics of HTML4 and then get straight onto HTML5, you'll be way ahead of the pack and your websites WILL stand out :)",
2011-01-17T10:20:13
jamesmortensen :

I would personally work on learning HTML5. By the time you get proficient at it to be good enough to professionally code websites, most of the major browser vendors will have adopted it as the standard.\n\nRemember, web technology moves fast! What's hot today will be obsolete tomorrow, and what's in beta now will be hot tomorrow.\n\nI found this http://headjs.com, a modernizer, here on Stack Overflow, which is used to future-proof web applications. This makes learning and using HTML5 markup a possibility today, so that as browser vendors update their applications, they'll slide right into the HTML5 functionality.\n\nMake CSS apply only for Opera 11?",
2011-01-17T10:21:01
sevenseacat :

For a brief summary:\n\n\nHTML 4.01 is the current standard of markup languages for the internet.\nXHTML 1.0 was forked off from HTML 4.01. It introduced greater strictness in validation, more XML-like syntax (eg. <br /> instead of <br>) and XML namespaces for things like MathML (for embedding mathematical equations in pages.... very infrequently used). In theory XHTML allowed people to define their own tags.... but in practice this never happened. In actuality, the only real different it has from HTML 4.01 are the self-closing tags, a different doctype (the header at the top of HTML documents), and a few attributes on the <html> tag.\nXHTML 1.1 was a natural progression from XHTML 1.0. It introduced even greater strictness, and enforced things like mime-types for served documents. However, because it declared it was XML instead of HTML, and had to be served to the browser as XML (which Internet Explorer to this day does not support), it never took off.\nXHTML 2.0 was a draft recommendation that got scrapped along the way. No-one subsequently uses it.\nHTML 5 is the next evolution from HTML 4.01. It adds a lot of new tags, new functionality such as local storage (meaning more web-app type applications are possible), and some other goodies. It comes in two flavours - HTML 5, which uses HTML-style syntax, and XHTML 5, which uses XHTML syntax with self-closing tags (and is not to be confused with XHTML 2, which is dead remember.) It is 'the next big thing' in web markup languages, but is still in draft stage. Some browsers are introducing support for new HTML 5 tags, but legacy browsers have no support. \n\n\nHTML 5 cannot be safely used in current sites, due to the draft nature of the specification. Some sites are doing so, but those sites can possibly get the whole nature of the language yanked out from under their feet.\n\nHTML 5 is not expected to be a formal recommendation until 2022.\n\nIn summary: The current language of the web is HTML 4.01. HTML 5 expands on that greatly, but is not ready for everyday use. And the differences between HTML 4.01 and any flavour of XML, are minimal at best.",
2011-01-17T10:25:41
yy