Forum Moderators: open
I was busy trying not to drop out of college the last months and am now trying to recall the basic HTML and CSS that I had learned before.
I remember I was given the advice on here that I should use the latest version of HTML (HTML 4.01?) instead of going with XHTML, because actually there were problems associated with using XHTML. To be honest, I do not remember what it was at all.
But anyway, back then I decided to go with HTML for now. I'm trying to recall the main differences of it..and other than using a different "doctype", the only one I can remember is that in one of them I should close all tags (I dont even remember if I have to call them elements, now?), but in the other one they shouldn't be closed.
I think it's all about elements that only use one tag, not two tags, right? <h1></h1> is done the same way in (the latest version of) HTML and in XHTML. However, when it comes to <link rel....> in HTML, I would do it like this:
<link rel....>
whereas in XHTML I would do it like this
<link rel.../>
Do I remember this correctly?
Are there any other differences, I dont remember now? I remember it was the doctype and closing elements - thing? Anything else I might not remember now?
thanks!
See Why most of us should NOT use XHTML [webmasterworld.com] and FAQ: Choosing the best doctype for your site [webmasterworld.com], which includes links to validators that will quickly identify what is/is not the right way to declare tags such <br> (in HTML) and <br /> (in XHTML)