For some time now, I've started to have all the web pages Valiadated by a Validator from the W3C, But the problem is I get alot of errors, Obviously. But thats not the problem, The problem is I always get the error, "No Attribute" or"end tag for "br" omitted, but OMITTAG NO was specified"
Althrough I should be able to do this, I never learnt HTML from School and such, I learnt it myself off books and stripping other peoples work to get a better understanding, But the problem is most Temps I get are Xhtml or Html etc. Invalid.
Could someone help?
The goal of XHTML is to remove all attibutes in the document it's self. You are supposed to do all formatting through style sheets.
Also, in XHTML, all tags must be ended, and all image tags need alternate texts as so:
<br/>
<hr/>
<img src="url.gif" alt="image"/>
<p>TEXT</p>
And so on.
~Jeremy~
What program are you using to code your webpage? Most new programs such as Homesite close those tags that you are starting.
Coding today is a getting more strict that before due the reason of implementation of all these new things being added so that webpages can become more complex and beautiful. Even things such as using upper or lower case makes a difference as everything used to be in all upper case.
Yes, also things like using alt tags for your pictures makes a difference as that helps out people using non graphic browers.
I'm new and I'm learning like you, through books and what not. I've learned a butt load so far and I'm really excited to continue my education and make some wonderful webpages.
which is the doctype you are using?? Since OMITTAG NO is specified, it most probably is xHTML 1.0. Now, it's Transitional or Strict?
I don't know that it's correct to say that XHTML gets rid of ALL attributes. Only ones that style or position. Those should be left to CSS which itself is an attribute of elements. Other elements need certain attributes like <img scr=''/>. Also the id and class of elements can be given to any element.
I think this is all right.