Customizing SMF > SMF Coding Discussion
XHTML Validator Question
(1/1)
FrizzleFried:
I typed my sites URL in to this XHTML validator. (http://validator.w3.org/) and got this response:
--- Quote ---Line 138, Column 58: value of attribute "align" cannot be "absMiddle"; must be one of "top", "middle", "bottom", "left", "right"
…last firstlevel"><img align="absMiddle" src="http://www.REMOVED.com/Themes/…
✉
The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; a value like “selected="true"” is not allowed.
Error Line 143, Column 53: value of attribute "align" cannot be "absMiddle"; must be one of "top", "middle", "bottom", "left", "right"
…ass="firstlevel"><img align="absMiddle" src="http://www.REMOVED.com/Themes/…
✉
The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; a value like “selected="true"” is not allowed.
Error Line 148, Column 58: value of attribute "align" cannot be "absMiddle"; must be one of "top", "middle", "bottom", "left", "right"
…last firstlevel"><img align="absMiddle" src="http://www.REMOVED.com/Themes/…
✉
The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; a value like “selected="true"” is not allowed.
Error Line 239, Column 7: end tag for "ul" which is not finished
</ul>
✉
Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.
--- End quote ---
Are these issue critical to deal with? What files do I look at to correct them? I'm sorry for the "dumb" question, but I have no idea how the XHTML validation process works... or what files are checked, etc.
Any help would be greatly appreciated.
Suki:
Non of them are critical, meaning those errors won't prevent your users from view your webpage, however, it is always usefull to follow good coding practices, makes life better.
To solve them you need to look on your theme folder.
align="absbottom" does give problems, you can replace that with either style="vertical-align:bottom;" or style="vertical-align:middle;"
FrizzleFried:
--- Quote from: Suki on August 30, 2012, 06:11:47 PM ---Non of them are critical, meaning those errors won't prevent your users from view your webpage, however, it is always usefull to follow good coding practices, makes life better.
To solve them you need to look on your theme folder.
align="absbottom" does give problems, you can replace that with either style="vertical-align:bottom;" or style="vertical-align:middle;"
--- End quote ---
Thank you... any idea which file or how I can determine which file by chance?
Labradoodle-360:
Not very easily, probably the fastest way for you would be to look at a list of mods you have installed and track it's modifications.
Navigation
[0] Message Index
Go to full version