FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

W3C Validation Help, No Attribute!

 


alkady
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?
b4r4t
end tag error is because ... in xHtml You have to close all tags ...

<br> = <br /> , <hr> = <hr /> etc Smile even <img src="#" /> Smile

No atribute ... You get this error when You use html tags whitch are not included in specification ... like for example <div align="center></div> in XHTML 1.0 Strict Smile
jeremyyak
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~
xyberz
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.
rohan2kool
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?
Mosquito.Tyler
jeremyyak wrote:
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~


You must be careful when closing your tags like this, in Netscape '<br/>' will cause an error. Simply adding a space fixes this though.
The suntax that works with all browsers is '<br />' or '<hr />'.
Credit to W3Schools for informing me.
novisdesign
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.
Related topics

On Target Graphic Designs
Validation help needed
A "small" list of free apps
Opacity
layout messed up when viewing with firefox

Solved: Need convert php-template to css-html static
Let W3C Validate Your website
Need comments for my site
Some php probs..need some help plzz!
les archarnés de la validation W3C

Master Tutorial on SEO
Center IFrame
Help needed :P
Php parsing error! Need help
Help needed with Javascript and overflow
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.