- b2evolution CMS Support Forums
- b2evolution Support
- General Support
- Small Validation Issue
1 jules213 Jun 29, 2005 13:32
hi all,
ok, i have placed the blog into my site's template and all has gone well, with the exception of 2 remaining validation errors in xhtml strict that i cannot resolve.
I know that the errors are because i have redesigned the skin (or rather put my template around the blog), but if it is possible for someone knowledgable to have a look and tell me what I have done wrong that would be appreciated. Also, I tend to validate first in page valet, as it lists the code it has read and is clearer in its explanations:
http://valet.webthing.com/page/
The site page is here:
http://www.monkeytreemedia.co.uk/blogb2/
These are the 2 errors:
E: Line 134, char 19, "div" must be enclosed in one of "object", "applet", "map", "iframe", "button", "ins", "del" here .
E: Line 173, char 18, "p" must be enclosed in one of "object", "applet", "map", "iframe", "button", "ins", "del" here .
And this is the code from line 134 down to 203:
134: <div class="bPosts">
135:
136: <!-- =================================== START OF MAIN AREA =================================== -->
137:
138: <br /><h2>Tuesday, 30 June 2005</h2> <div class="bPost" lang="en-US">
139: <h3 class="bTitle">• This is a test</h3></div>
140:
141:
142:
143:
144: <div class="bText">
145: <p>This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test </p>
146: <p>This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test This is a test v
147: </p>
148: </div>
149:
150:
151:
152:
153: <div class="bSmallPrint">
154: Categories: <a href="http://monkeytreemedia.co.uk/blogb2/index.php?cat=1" title="Browse category">New Videos</a>, <strong><a href="http://monkeytreemedia.co.uk/blogb2/index.php?cat=2" title="Browse category">All News</a></strong> <br />
155:
156: <a href="http://monkeytreemedia.co.uk/blogb2/index.php?title=this_is_a_test&more=1&c=1&tb=1&pb=1#comments" title="Display comments / Leave a comment">Leave a comment</a>
157:
158: <!--
159: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
160: xmlns:dc="http://purl.org/dc/elements/1.1/"
161: xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
162: <rdf:Description
163: rdf:about="http://monkeytreemedia.co.uk/blogb2/index.php?title=this_is_a_test&more=1&c=1&tb=1&pb=1"
164: dc:identifier="http://monkeytreemedia.co.uk/blogb2/index.php?title=this_is_a_test&more=1&c=1&tb=1&pb=1"
165: dc:title="This is a test"
166: trackback:ping="http://monkeytreemedia.co.uk/blogb2/htsrv/trackback.php?tb_id=25" />
167: </rdf:RDF>-->
168: <br /><br /><br />
169: </div>
170: </div>
171:
172:
173: <p class="center"><strong>
174: </strong></p>
175:
176:
177:
178:
179:
180: </p>
181: <p class="BlackBodyText"> </p>
182: <p class="BlackBodyText"> </p>
183: <p class="BlackBodyText"> </p>
184: <p class="BlackBodyText"> </p>
185: <p class="BlackBodyText"> </p>
186: <p class="BlackBodyText"> </p>
187: <p class="BlackBodyText"> </p>
188: <p class="BlackBodyText"> </p>
189: <p class="BlackBodyText"> </p> <p class="BlackBodyText"> </p>
190: <p class="BlackBodyText"> </p>
191:
192: <p class="BlackBodyText"> </p>
193: <p class="BlackBodyText"> </p></td>
194: <td class="BlackBoxMR"></td>
195: </tr>
196: </table>
197: <div class="BoxBLKbot" style="clear:both"></div>
198:
199:
200:
201: </div>
202: </div>
203:
[size=12][/size]Many thanks in advance for any help.
Jules
3 jules213 Jun 29, 2005 17:04
thanks loads ¥åßßå i'd never have figured that one out, you're a star.
Not sure what the third one was, but hopefully it was rectified by removing those two bits of code, and it validates now. lovely.
cheers,
jules
4 yabba Jun 29, 2005 17:14
No problem ;)
¥
Your first error is slightly higher up in your code and is causing your second error, but you also have a third error :p
133: <p class="BlackBodyText">
134: <div class="bPosts">
135:
136: <!-- =================================== START OF MAIN AREA =================================== -->
137:
138: <br /><h2>Tuesday, 30 June 2005</h2> <div class="bPost" lang="en-US">
139: <h3 class="bTitle">• Welcome to Youth TV</h3></div>
140:
141:
142:
143:
144: <div class="bText">
145: <p>Thank you for stopping by Youth TV. The site is still being built, so please bare with us and come back in a couple of weeks to be able to see the video projects that have already been completed.</p>
146: <p>Thanks.
147: </p>
148: </div>
149:
150:
151:
152:
153: <div class="bSmallPrint">
154: Categories: <strong><a href="http://monkeytreemedia.co.uk/blogb2/index.php?cat=2" title="Browse category">All News</a></strong>, <a href="http://monkeytreemedia.co.uk/blogb2/index.php?cat=15" title="Browse category">Site News</a> <br />
155:
156:
157:
158: <!--
159: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
160: xmlns:dc="http://purl.org/dc/elements/1.1/"
161: xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
162: <rdf:Description
163: rdf:about="http://monkeytreemedia.co.uk/blogb2/index.php?title=this_is_a_test&more=1&c=1&tb=1&pb=1"
164: dc:identifier="http://monkeytreemedia.co.uk/blogb2/index.php?title=this_is_a_test&more=1&c=1&tb=1&pb=1"
165: dc:title="Welcome to Youth TV"
166: trackback:ping="http://monkeytreemedia.co.uk/blogb2/htsrv/trackback.php?tb_id=25" />
167: </rdf:RDF>-->
168: <br /><br /><br />
169: </div>
170: </div>
171:
172:
173: <p class="center"><strong>
174: </strong></p>
175:
176:
177:
178:
179:
180: </p>
If you remove the red bits then you'll validate.
¥