Recent Topics

Please explain these errors in Plain English

Started by on Dec 29, 2003 – Contents updated: Dec 29, 2003

Dec 29, 2003 13:36    

Hi guys, I have some problems with my new layout. I can't understand why this layout does not validate against XHTML 1.0 transitional. [url=http://validator.w3.org/check?uri=http://marius.gricius.net]See yourself[/url]. :(

Dec 29, 2003 15:23

# Line 192, column 11: ID "sidenav" already defined (explain...).

<h3 id="sidenav">Blogrolas</h3>

You can only use IDs once each. Maybe you could try replacing them with classes, ie.

Code

<h3 class="sidenav">

and such. In CSS you can change the #sidenav {} stuff into h3.sidenav {} to make sidenav a class of h3, or you could change it to .sidenav {} to make it a class of any tag.

Line 193, column 93: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified

...inas.gricius.net">LG</a> <img height=10 alt="LG asmeninė svetainė" src="htt

You need to wrap all attributes in quotes, ie.

Code

<img height="10" alt="LG etc..." />

Line 195, column 234: end tag for "img" omitted, but OMITTAG NO was specified

..._a.gif" width=10 align=middle border=0> <a href="http://marius.gricius.net/

In XHTML you need to close all tags. Tags which have open and close tags are the same as before, but single tags (such as img or input) need a space followed by /> to close them, ie.

Code

<img src="jadajada.gif" />

I hope that helps! :)

-Vegar

Dec 30, 2003 07:46

Thanx, Funky "dude" :)

I should see myself, that so many instaces of the same ids will lead towards to the "validation death".

Cheers.


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.