HTML code in CAPITALS or small letters.. any difference?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    HTML code in CAPITALS or small letters.. any difference?

    This question might sound stupid,
    but I just want to know if it effects the performance of the browser if the whole HTML code is in CAPITAL letters or small letters?
  • harshmaul
    Recognized Expert Contributor
    • Jul 2007
    • 490

    #2
    Hi,
    There is no difference. apart from capital letter won't validate at w3c. You should try to make your code validate via the w3c validation service...

    http://validator.w3.or g/

    There are some simple rules that will make your code validate. if you look through thier site you can learn more.

    But in short to your answer. It will not affect performance, your code just won't be valid.

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      Capitalized letters validate just fine because case does not matter in HTML. XHTML is a different story because it is XML designed to support HTML; that will not validate and case does matter. However, most people serve XHTML as HTML and won't notice the difference.

      It is recommended you use lower-case in all your markup.

      Comment

      Working...