Simple Machines Community Forum

General Community => Scripting Help => Topic started by: Gandalf on May 30, 2005, 09:16:26 PM

Title: html not validating
Post by: Gandalf on May 30, 2005, 09:16:26 PM
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 (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.siemens-mobiles.org)

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???
Title: Re: html not validating
Post by: [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]
Title: Re: html not validating
Post by: Gandalf on May 30, 2005, 09:38:12 PM
thank you [Unknown] for the fast answer, you rule,
i'll try it now
thx again
Title: Re: html not validating
Post by: Gandalf on May 30, 2005, 09:42:16 PM
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
(http://www.siemens-mobiles.org/forum/Smileys/default/respect.gif)
Title: Re: html not validating
Post by: Amacythe on May 30, 2005, 09:44:19 PM
That isn't the first time I've seen that particular graphic applied toward [Unknown] ;)
Title: Re: html not validating
Post by: [Unknown] on May 30, 2005, 09:47:27 PM
http://www.w3schools.com/

-[Unknown]
Title: Re: html not validating
Post by: Gandalf on May 30, 2005, 09:56:48 PM
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
Title: Re: html not validating
Post by: Jap on June 05, 2005, 04:56:32 PM
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
Title: Re: html not validating
Post by: [Unknown] on June 05, 2005, 05:01:08 PM
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]