Let’s say we have the following html syntax:
<TABLE width=400, height=300>
<TR>
<TD color=Red>SOME TEXT</TD>
</TR>
</TABLE>
as it can be seen, there is no style used, all tags are written using the uppercase letters. This is invalid. I would like to inform it this kind of incorrect HTML syntax has an influence in web performance?
Additionally, in the code I get from the client, lots of HTML controls are build in code-behind and then injected in the aspx.
How is with performance in such a case?
Uppercase elements are valid in HTML. HTML is case insensitive. While XHTML is not – everything should be lower case.
Upper vs lower case should not affect performance. But lots of CSS inline with the HTML might very well affect performance as often an external CSS will more effectively define the style globally instead of each element.
HTML
http://www.w3.org/TR/html4/about.html#h-1.2.1
XHTML
http://www.w3.org/TR/xhtml1/#h-4.2