Bootilicious
01-11-2006, 01:01 PM
Hi, I was wondering if I had to end every tag that I put in my css document with a </br> tag??? Because when I tried to validate it, it said:
Please, validate your XML document first!
Line 72
Column 3
The element type "br" must be terminated by the matching end-tag "</br>".
Or does that just mean that I have to use the <br /> tag?
allie
01-11-2006, 01:09 PM
Or does that just mean that I have to use the <br /> tag?
I'd have to see your html, but I assume it means the above :D
Monkey Bizzle
01-11-2006, 01:12 PM
Hi, I was wondering if I had to end every tag that I put in my css document with a </br> tag???
::is confused:: you shouldn't have ANY tags in your CSS document...
If you are trying to code in XHTML, you have to use <br /> instead of <br>
Did you attempt validating CSS contained within an HTML document? It is what it sounds like. Let's say you are trying to validate the CSS in, for example, this file:
<!DOCTYPE>
<html>
<head>
<title>my uber cool site</title>
<style type="text/css">
body {stuff}
etc.
</style>
</head>
<body>
content
</body>
</html>
If the HTML in itself doesn't validate, the validator won't be able to validate the CSS.
Bootilicious
01-11-2006, 08:56 PM
ah ok, heres my site: http://www.freewebs.com/staggermann
maztrin
01-11-2006, 09:45 PM
im not sure exaclty wot u mean but maybe this will help somehow validate your site http://www.freewebs.com/staggermann/:
validate (http://validator.w3.org/check?verbose=1&uri=http%3A//www.freewebs.com/staggermann/)
EDIT:
oh i see what you mean youR css doesnt validate:
css validate (http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//www.freewebs.com/staggermann/)
i guess you need to validate your xml document
Bootilicious
01-11-2006, 10:25 PM
ahh ok, i guess i'll have to make it xhtml compliant too... stupid languages! now i gotta add the dam br tags. thanks for the help... a frog and a cat?!?!?:hamster: :froggie2: ... maybe a hampster.. ooo a birdy!:chicken: .. chicken...
Monkey Bizzle
01-12-2006, 04:41 AM
There are other errors in your page as well... I will attempt to explain them to you. I am using the validator at http://htmlhelp.com/tools/validator/ to do this.
First of all, convert all <br> to <br />. That will eliminate a lot of your errors.
The first error I get is one to do with your first list. You have:
<div class="boxbottom">
<ul>
<li><a href="index.htm" title="Home">/Home\</a></li><br>
<strong>Guides</strong><br>
<li> <a href="skills.htm" title="Skills">/Skill Guides\</a></li><br>
</div>
You can not have <br> tags inside a list. That kind of defeats the purpose of a list. Each new set of <li></li> automatically moves to the next line. You also haven't closed the <ul> tag. For this code, I would suggest using this instead:
<div class="boxbottom">
<ul>
<li><a href="index.htm" title="Home">/Home\</a></li>
</ul>
<strong>Guides</strong><br />
<ul>
<li> <a href="skills.htm" title="Skills">/Skill Guides\</a></li>
</ul>
</div>
The only other errors I get are because you forgot to close the <div> tag for the <div id="wrapper">, <div id="body">, and <div id="content">. To fix that, just add 3 </div> tags right before the </body> tag. That will validate your page as far as XHTML goes.
If you want to validate your CSS, use this validator:
http://htmlhelp.com/tools/csscheck/