Coding question

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
jeffocal
Rank 0 - Newcomer
Posts: 1
Joined: Mon Mar 09, 2009 12:24 pm

Coding question

Post by jeffocal »

I'm a novice at html coding an attempted to add some html codes to the php templates for the Imagineer's Chronicles http://www.theimagineershome.com/blog/

The site looks good however, at times it appears slow to load which may be due to the coding errors found by the CSE Html standard Validator

I have looked over the file until my eyes are about ready to fall out of my head but have not been able to clear them and would appreciate any help you can give me.

I've attached a copy of the errors and the php files to this article.

Thankyou

Jeff
_________________

Validator message export for "E:\Jeff's Data\sidebar2.php":
Generated by CSE HTML Validator Standard v9.01 (http://www.htmlvalidator.com/)

1. Warning: Cannot do a PHP check because the path to the PHP syntax checker is not specified. See the documentation or PHP tab in the Validator Engine Options for more information about PHP syntax checking.

2. Message: (Accessibility->Web Content Accessibility Guidelines 1.0) [73] WCAG 1.0 accessibility checking is disabled.

3. Message: (Accessibility->Section 508 Accessibility Standards) [73] Section 508 accessibility checking is disabled.

4. Message in line 3 at character 2: The first tag in the document was out of range. The document has been checked with the assumption that a block of HTML that belongs in a <html><body> ... </body></html> section is being validated.

5. Warning in line 20 at character 44: The "align", "border", "height", "src", and "width" attributes should only be used with the "input" element when type="image".

6. Error in line 37 at character 2: [47] The "ul" element may directly contain only the "li" element. The "CENTER" element is not allowed here.

7. Message in line 37 at character 2: (Grouped->Deprecated) [9] Even though the "CENTER" element is deprecated in HTML 4.01 and XHTML, real-world circumstances may make using this element better than using CSS in some situations. Using CSS may be more complex and may not easily (or at all) give the desired effect of centering blocks like forms and tables. However, AI Internet Solutions still recommends using CSS whenever reasonably possible.

8. Message in line 37 at character 2: (Grouped->Deprecated) [9] The "CENTER" element is deprecated in HTML 4.01 and XHTML in favor of using style sheets (to center text use the CSS "text-align: center" instead or align="center" where "align" is not deprecated). Another option is to use <div style="text-align: center">...</div> instead of <center>...</center>, but this may not center tables. The "CENTER" element may become obsolete and unsupported in the future.

9. Message in line 44 at character 2: (Grouped->General Compatibility) The "table" tag is contained in a "center" tag. Different browsers may render this very differently. For example, Internet Explorer 6.0 may center the table cell content (depending on the DOCTYPE) while Internet Explorer 5.5 does not. However, both will center the table itself. If you want to center the table, then align="center" may be used in the "table" tag.

10. Message in line 44 at character 2: (Grouped->General Compatibility) [5] The "table" element is an official HTML 4.01 and XHTML element but may not be supported by older or nongraphical browsers. Furthermore, nongraphical browsers that do support tables may not support them the way that you expect. However, most browsers used today should support this element.

11. Message in line 44 at character 92: (Styles->CSS Tips) Use the inline "style" attribute sparingly. Using this attribute too often can prevent you from receiving many of the benefits of CSS like easier to maintain and less cluttered documents. Consider using a single CSS style sheet instead of relying too much on the "style" attribute. This message is displayed only once.

12. Error in line 45 at character 198: The attribute value for the "name" attribute does not match the attribute value for the "id" attribute. The values for these attributes should be identical (including case) when used with the "img" element.

13. Warning in line 46 at character 46: [47] Text was found in a(n) "ul" section. Text in this section should be contained in an "li" tag even though some browsers may render this text without an "li" tag. More HTML standard compliant browsers such as Opera may not render this text at all.

14. Error in line 50 at character 2: [47] The "ul" element may directly contain only the "li" element. The "CENTER" element is not allowed here.

15. Message in line 56 at character 2: (Grouped->General Compatibility) The "table" tag is contained in a "center" tag. Different browsers may render this very differently. For example, Internet Explorer 6.0 may center the table cell content (depending on the DOCTYPE) while Internet Explorer 5.5 does not. However, both will center the table itself. If you want to center the table, then align="center" may be used in the "table" tag.

16. Error in line 57 at character 203: The attribute value for the "name" attribute does not match the attribute value for the "id" attribute. The values for these attributes should be identical (including case) when used with the "img" element.

17. Warning in line 58 at character 46: [47] Text was found in a(n) "ul" section. Text in this section should be contained in an "li" tag even though some browsers may render this text without an "li" tag. More HTML standard compliant browsers such as Opera may not render this text at all.

18. Error in line 63 at character 32: [47] The "ul" element may directly contain only the "li" element. The "br" element is not allowed here.

19. Error in line 67 at character 2: [47] The "ul" element may directly contain only the "li" element. The "CENTER" element is not allowed here.

20. Message in line 74 at character 2: (Grouped->General Compatibility) The "table" tag is contained in a "center" tag. Different browsers may render this very differently. For example, Internet Explorer 6.0 may center the table cell content (depending on the DOCTYPE) while Internet Explorer 5.5 does not. However, both will center the table itself. If you want to center the table, then align="center" may be used in the "table" tag.

21. Error in line 75 at character 219: The attribute value for the "name" attribute does not match the attribute value for the "id" attribute. The values for these attributes should be identical (including case) when used with the "img" element.

22. Warning in line 76 at character 46: [47] Text was found in a(n) "ul" section. Text in this section should be contained in an "li" tag even though some browsers may render this text without an "li" tag. More HTML standard compliant browsers such as Opera may not render this text at all.

23. Error in line 89 at character 4: [47] The "ul" element may directly contain only the "li" element. The "TABLE" element is not allowed here.

24. Message in line 95 at character 17: (Grouped->Deprecated) [9] The "height" and "width" attributes for the "TD" and "th" elements are deprecated in HTML 4.01 and XHTML in favor of using style sheets.

25. Message in line 95 at character 49: (Grouped->Deprecated) [9] The "bgcolor" attribute for the "TD" and "th" elements is deprecated in HTML 4.01 and XHTML in favor of using style sheets. Instead of the "BGCOLOR" attribute, consider using the CSS property "background-color". Example: style="background-color: #000000".

26. Warning in line 97 at character 157: [47] Text was found in a(n) "ul" section. Text in this section should be contained in an "li" tag even though some browsers may render this text without an "li" tag. More HTML standard compliant browsers such as Opera may not render this text at all.

27. Message in line 97 at character 24: (Grouped->General Compatibility) [5] The "EMBED" element is not an official HTML or XHTML element. Some browsers may not support this element. Consider using the "object" element instead.

28. Message in line 97 at character 146: (Grouped->Deprecated) [9] The "CLEAR" attribute is deprecated in HTML 4.01 and XHTML in favor of using style sheets (use the "clear" CSS property instead).

29. Comment: (Accessibility->Accessibility Tips) This program can help you make your web pages more accessible. An accessible page is one that more individuals can use, such as individuals who are blind or deaf. It can also increase the usefulness of your web page for individuals who browse the web using slower devices like older computers or wireless devices like cell phones and PDAs. An accessible web site makes good business sense (and possibly good legal sense as well). You can enable or disable accessibility checking in the Validator Engine Options.

30. Comment: At least one <? ... ?> block within a tag has been collapsed to '!PHP!'. This feature is for minimizing the number of errors that HTML Validator generates due to using <? ... ?> blocks in tags.

31. Comment: Possibly misspelled word (12, 1 unique): Buttons.com (12x). Complete list.

32. Comment: (Grouped->Search Engine) Keyword density: Buttons (3x), Buttons.com (3x), v2.27 (3x), Vista (3x), Webpage (3x), Articles (1x), Calendar (1x), Feed (1x), News (1x), Registration (1x). Complete list. 3 words in exclude list.

33. Comment: [JavaScript] 0 error(s), 0 warning(s)

34. Comment: [JavaScript] 3 messages were not shown because they were for another document. JavaScript Lint will sometimes try to check other linked JavaScript documents and CSE HTML Validator filters these messages out.

35. Comment: HTML document detected.

36. Comment: [10] CSE HTML Validator Std/Pro allows you to disable certain messages (like this example message) and groups of related messages by disabling flags. For instance, the [10] at the beginning of this message indicates that you can disable this message by disabling validator flag 10. If you are using HTML Validator's integrated editor, then you can simply use your mouse on this message to open the context menu (usually done by right-clicking the mouse on this message) and select 'Disable Flag 10' to disable this message. For more information about disabling messages, please look at the Configuration section in the documentation.

37. Comment: CSE HTML Validator Std/Pro allows you to disable many messages on an individual basis without using flags. For instance, you can disable this message by using HTML Validator's integrated editor to open the context menu for this message (usually done by right-clicking the mouse on this message) and selecting 'Options for this Message->Disable Message' to disable this message. For more information about disabling messages, please look at the Configuration section in the documentation.

38. Comment: 3302 bytes; 2.3s@14.4Kbps, 1.1s@28.8, 0.7s@50, 0.5s@64, 0.3s@128, 0.1s@384, 0.1s@512, 0.0s@768, 0.0s@1.5Mbps, 0.0s@10Mbps.

39. Comment: 0.14s, 8 errors, 6 warnings, 14 messages, 11 validator comments, 109 lines, 50 tags (38 closed), 9 document comments, 1 entity, 151 programs run.


<!-- Begin Vista-Buttons.com -->
<script type="text/javascript" src="sidebar2-files/sc7hbim.js"></script>
<ul><li> :(

<form method="get" action="http://www.google.com/search">

<input type="text" name="q" class="goog" />

<input type="hidden" name="hl" value="it"/>

<input class="btnG" type="submit" value="" src="<?php bloginfo('template_directory'); ?>/images/search.gif"/>

</form>

</li>
</ul>

<br>
<ul>

<CENTER>

<!-- Begin Vista-Buttons.com -->
<script type="text/javascript" src="sidebar2-files/sc7hbim.js"></script>
<table id="vista-buttons.com:id7hbim" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:0px" title ="Articles">
<a href="http://www.theimagineershome.com/blog/?p=1293" onMouseOver='xpe("7hbimo");' onMouseOut='xpe("7hbimn");' onMouseDown='xpe("7hbimc");'><img id="xpi_7hbim" src="sidebar2-files/bt7hbim_0.gif" name=vb7hbim width="60" height="18" border=0 alt="Articles"></a></td></tr></table>
<noscript><a href="http://vista-buttons.com">Buttons Webpage by Vista-Buttons.com v2.27</a></noscript>
<!-- End Vista-Buttons.com --><br>
</CENTER>

<CENTER>

<!-- Begin Vista-Buttons.com -->
<script type="text/javascript" src="sidebar2-files/scwnmks.js"></script>
<table id="vista-buttons.com:idwnmks" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:0px" title ="News Feed">
<a href="http://feeds.feedburner.com/theimagineershome/TbmO" onMouseOver='xpe("wnmkso");' onMouseOut='xpe("wnmksn");' onMouseDown='xpe("wnmksc");'><img id="xpi_wnmks" src="sidebar2-files/btwnmks_0.gif" name=vbwnmks width="78" height="20" border=0 alt="News Feed"></a></td></tr></table>
<noscript><a href="http://vista-buttons.com">Buttons Webpage by Vista-Buttons.com v2.27</a></noscript>
<!-- End Vista-Buttons.com -->
</CENTER>

<!-- End Vista-Buttons.com --><br>

<!-- Begin Vista-Buttons.com -->
<CENTER>
<!-- Begin Vista-Buttons.com -->
<script type="text/javascript" src="sidebar2-files/scnrogc.js"></script>
<table id="vista-buttons.com:idnrogc" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:0px" title ="Registration">
<a href="http://www.theimagineershome.com/blog/w ... n=register" onMouseOver='xpe("nrogco");' onMouseOut='xpe("nrogcn");' onMouseDown='xpe("nrogcc");'><img id="xpi_nrogc" src="sidebar2-files/btnrogc_0.gif" name=vbnrogc width="90" height="20" border=0 alt="Registration"></a></td></tr></table>
<noscript><a href="http://vista-buttons.com">Buttons Webpage by Vista-Buttons.com v2.27</a></noscript>
<!-- End Vista-Buttons.com -->
</CENTER>
<?php if ( !function_exists('dynamic_sidebar')

|| !dynamic_sidebar(2) ) : ?>
<li></li>
<li><center><h2>Calendar</h2></center>
</li>
<li><?php get_calendar(); ?>
</li>
<TABLE WIDTH=182 BORDER=0 CELLPADDING=4 CELLSPACING=0 STYLE="page-break-before: always">

<COL WIDTH=150>

<TR>

<TD WIDTH=135 HEIGHT=200 VALIGN=TOP BGCOLOR="#000000">

<ADDRESS><EMBED SRC="http://www.theimagineershome.com/blog/f ... eflash.swf" NAME="Object1" ALIGN=LEFT WIDTH=135 HEIGHT=225><BR CLEAR=LEFT>&nbsp;</ADDRESS>

</TD>

</TR>

</TABLE>
<?php endif; ?>
</ul>