Click to See Complete Forum and Search --> : i get this errro : there is no attribute "LEFTMARGIN"
amahmood
02-08-2005, 04:30 PM
when I try my home page at http://validator.w3.org/, I get this error:
Line 11, column 47: there is no attribute "LEFTMARGIN"
Why is that?
and another question. I have this doctype on my page:
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
Should I change it?
Charles
02-08-2005, 04:34 PM
Because there is no attribute "leftmargin".
Unless you are using frames you should use:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
NogDog
02-08-2005, 04:42 PM
Depending on what you are trying to do, you probably want to set your left margin via CSS, either in a style sheet using a class for the element, or in-line, such as <p style="margin-left: 20px">.
amahmood
02-08-2005, 04:51 PM
Originally posted by Charles
Because there is no attribute "leftmargin".
Unless you are using frames you should use:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
I don't use frames so I changed the doctype.
and about leftmargin, microsoft approves it here:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/leftmargin.asp
Actually I haven't put it here myself. I was on a template and I just copied the code.
ksource
02-08-2005, 04:58 PM
Originally posted by amahmood
I don't use frames so I changed the doctype.
and about leftmargin, microsoft approves it here:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/leftmargin.asp
Actually I haven't put it here myself. I was on a template and I just copied the code.
Will you explain to me what the following means, from your URL: ault.asp?url=/workshop/aut ?
I noticed it had a part of another URL after it, can you tell me about it?
Thanks
- Kory
David Harrison
02-08-2005, 05:29 PM
amahmood - Microsoft don't write the standards for HTML, the attribute leftmargin has been removed from play as CSS can be used to perform that operation.
The W3C (World Wide Web Consortium) are the people that write the standards for HTML and CSS (among other things), have a look at this (http://w3.org/MarkUp/).
ksource - Anything in a URL after a ? is called the querystring. Chances are that there is some server side script that takes the querystring and performs some operation based on it. If you look at the URL for the HTML forum, you'll see that there's ?s=&forumid=2 at the end of it. I'm not sure what the "s" does but the "forumid" is pretty self explanatory.
amahmood
02-08-2005, 05:38 PM
Thanks all.
I think I got the idea. So that piece of code is invalid and it has no use (if not harm).
I will remove that part.