News:

Wondering if this will always be free?  See why free is better.

Main Menu

html not validating

Started by Gandalf, May 30, 2005, 09:16:26 PM

Previous topic - Next topic

Gandalf

Hello,
i'm using mambo-smf, i know that i have to edit mambo template to have closing entries /> instead of >

but i'm beginning to validate first the first weird error,
so i have in the source the doctype

<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


when i try the w3c validator

i get a lot of errors, so i will proceed one by one, but there's some are required and weird to have them, like

Line 23, column 52: there is no attribute "background"

...ign="center" align="left" background="http://www.siemens-mobiles.org/template


how can i fix this one for example???
Siemens-mobiles.org Visit it and you won't regret it :D

[Unknown]

Instead of:

<... background="...">

Use:

<... style="background-image: url(...);">

Instead of:

valign="center"

Use:

valign="middle"

Or:

align="center"

Instead of:

<tr height="20">

Use:

<tr style="height: 20px;">

-[Unknown]

Gandalf

thank you [Unknown] for the fast answer, you rule,
i'll try it now
thx again
Siemens-mobiles.org Visit it and you won't regret it :D

Gandalf

BTW do you have/know a site or a Tutorial on the conversation between those for all entries so i can resolve all errors?

Thank you
Siemens-mobiles.org Visit it and you won't regret it :D

Amacythe

That isn't the first time I've seen that particular graphic applied toward [Unknown] ;)

[Unknown]


Gandalf

Quote from: Amacythe on May 30, 2005, 09:44:19 PM
That isn't the first time I've seen that particular graphic applied toward [Unknown] ;)
yep he rules, so it's normal :)

Quote from: [Unknown] on May 30, 2005, 09:47:27 PM
http://www.w3schools.com/

-[Unknown]
thank you man
Siemens-mobiles.org Visit it and you won't regret it :D

Jap

Quote from: [Unknown] on May 30, 2005, 09:22:49 PM
Instead of:

<... background="...">

Use:

<... style="background-image: url(...);">

Instead of:

valign="center"

Use:

valign="middle"

Or:

align="center"

Instead of:

<tr height="20">

Use:

<tr style="height: 20px;">

-[Unknown]

I know XHTML 1.0 Transitional (like he posted as his doctype) accepts deperciated attributes, but regardless should you be teaching them?

valign is depreciated
align is depreciated

Use CSS instead

[Unknown]

It's using valign, but it's using it wrong.  And, anyway, browser support for the css versions of valign can be sketchy (e.g. Mac IE) so I'll wait on it.

-[Unknown]

Advertisement: