You should in your code always strive to follow XHTML and WCAG. Regardless of what context you write your output code (e.g. in a custom portlet, in a SiteVision HTML portlet, in a SiteVision Script portlet, in a SiteVision JCR menu portlet, or in a SiteVision Proxy portlet etc).
BAD | <TABLE border=0> |
---|---|
GOOD | <table style="border:none" summary="..."> |
BAD | <BR>, <hr> |
GOOD | <br />, <hr /> |
BAD | <IMG src="/x/y.gif"> |
GOOD | <img src="/x/y.gif" alt="..." /> |
BAD | <script language="JavaScript 1.3">...</script> |
GOOD | <script type="text/javascript">...</script> |
<noscript>...</noscript> | |
BAD | <input type=BUTTON OnClick="..." value="..."> |
GOOD | <input type="button" onclick="..." onkeypress="..." value="..." /> |
BAD | <a href="aaa.htm">...</a> |
GOOD | <a href="aaa.htm" title="...">...</a> |
BAD | <a href="b" target="_blank">...</a> |
BAD | <a href="#" onclick="window.open('b.htm'); return false;">...</a> |
GOOD | <a href="b.htm" onclick="window.open('b.htm'); return false;" onkeypress="window.open('b.htm'); return false;" title="...">...</a> |
BAD | Phone: <input type="text" name="phone"> |
GOOD | <label for="anId">Phone:</label> |
<input type="text" name="phone" id="anId" /> |
Last updated: