no Valid HTML

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
SNap
Posts: 314
Joined: Wed 5. May 2004, 10:45
Location: Passau, Bavaria, Germany
Contact:

no Valid HTML

Post by SNap »

hi,

when i validate my site under construction...

http://henters.area4711.de

i get following errors:

Code: Select all

# Error  Line 20 column 91: there is no attribute "BACKGROUND".

...h="850" bgcolor="#FFFFFF" background="images/bg_all2.gif" align="center">

# Error Line 22 column 50: there is no attribute "BACKGROUND".

<td colspan="4" style="height:287px;"  background="images/bg_top2.gif">&nbsp;</td>
i defined these backgrounds in layout just normally...

Is it possible that i am missing a closing tag or something?

Cheers
SNap
'welcome to the real world!' datensysteme-lenk
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

Hi Snap,

as is know right the right semantic css format is:

Code: Select all

background-image:url(images/bg_top2.gif);
To get all this right i do working now only with DIVS and definitions in frontend.css.

May be this helps you to get further.

You might create a class for background like ".background-main" and
define then this in frontend.css like:

Code: Select all

.background-main {
     background-image:url(images/bg_top2.gif);
     repeat: no-repeat;
}
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

Hi SNap,

same old story with validation. The tipp from
cyrano should solve the problem. Validation
is really funny so in former times you haven´t
a valid when you just forgot to set an alt="blah"
in an image-tag. Or just forget to close
something. No browser will care about this now!
Maybe in a future-time.

The W3C here and browser-developer there.

So, i don´t care about validation (don´t take me
as an example
) but the browser have a really
high error-tolerance that this error makes me
laugh.

Anyway, good luck
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

this is wrong
style="height:287px;" background="images/bg_top2.gif">

change to
style="height:287px; background-image:url(images/bg_top2.gif)">
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

the same at this line:
<td colspan="4" style="height: 32px;" background="images/bg_bottom2.gif">
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
SNap
Posts: 314
Joined: Wed 5. May 2004, 10:45
Location: Passau, Bavaria, Germany
Contact:

Post by SNap »

hi flip-flop, pico,

you don't got me right ;) i cannot change that, since phpwcms is generating that ;) i just entered the pic in the picture field in layout ;)

don't have that at my other phpwcms sites...
'welcome to the real world!' datensysteme-lenk
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

You are right.
A little workaround: Create a class and insert - background="images/bg_bottom2.gif" - into.
The class you entered in the class field in layout.

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
olleolleolle
Posts: 24
Joined: Mon 18. Apr 2005, 21:35
Location: Copenhagen, Denmark
Contact:

This might be seen as a problem

Post by olleolleolle »

I think default settings (or templates, or examples, or stuff that comes with a project) that aren't valid HTML are problematic.

What can a user do about the situation?

Is there an Oliver-approved way of submitting code patches for phpwcms?

kind regards,
Olle
Olle Jonsson
olleolleolle
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Re: This might be seen as a problem

Post by Kosse »

olleolleolle wrote:I think default settings (or templates, or examples, or stuff that comes with a project) that aren't valid HTML are problematic.
If we talk about a "clean new phpwcms package" then the content parts are the big issue... otherwise many times users make their own mistakes :P
olleolleolle wrote: What can a user do about the situation?
re-write all the content parts :? and make them valid...
means going through A LOT of code lines... replacing all HTML declarations with valid XHTML outputs... It's a thing for the future, result = css can act better as well.
olleolleolle wrote: Is there an Oliver-approved way of submitting code patches for phpwcms?
kind regards,
Olle
dunno about that, we should ask him... ;)

Cheers
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Most of the code of phpwcms is valid. Often it's the combination users are using in there templates making problems. The background attribute for td is absolute correct. But to avoid the warning use a CSS class instead.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
SNap
Posts: 314
Joined: Wed 5. May 2004, 10:45
Location: Passau, Bavaria, Germany
Contact:

Post by SNap »

well it's not a warning, i would ignore that ;) it's an error... when i paste the generated code in dreamweaver for example, it says that alle is ok :-|
'welcome to the real world!' datensysteme-lenk
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

In my firefox it is a warning. The "background"

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Who validates the validators :?: :?:
SNap
Posts: 314
Joined: Wed 5. May 2004, 10:45
Location: Passau, Bavaria, Germany
Contact:

Post by SNap »

Oliver Georgi wrote:In my firefox it is a warning. The "background"

Oliver
http://validator.w3.org/check?verbose=1 ... 4711.de%2F
'welcome to the real world!' datensysteme-lenk
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

Who validates the validators ??
:lol:

This is exactly the point. It´s very funny to see that meanwhile validation
has some kind of a religous dimension.

i probably gets millions of errors if i would try to validate my page.
i tried it with all normal browsers on all normal systems.
The only fault was mac with IE 4 (mac edition of course)
by the way (don´t take me as a sample). I´m going to clean up
my code either. My goal is to only a few hundredthousand errors.
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
Post Reply