SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2010
    Posts
    90
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Capitals in XHTML

    I am creating a training session for a course I am studying, and am needing to add an explanation of why capitals shouldn't be used in XHTML. Could someone please give me good explanation? Thanks in advance.

  2. #2
    SitePoint Addict EarlyOut's Avatar
    Join Date
    Mar 2011
    Location
    Sector R
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From XHTML 1.0: The Extensible HyperText Markup Language (Second Edition)

    XHTML documents must use lower case for all HTML element and attribute names. This difference is necessary because XML is case-sensitive e.g. <li> and <LI> are different tags.

  3. #3
    Mouse catcher silver trophy Stevie D's Avatar
    Join Date
    Mar 2006
    Location
    Yorkshire, UK
    Posts
    5,881
    Mentioned
    122 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by !designer! View Post
    I am creating a training session for a course I am studying, and am needing to add an explanation of why capitals shouldn't be used in XHTML. Could someone please give me good explanation? Thanks in advance.
    Is "because the rules of XHTML say they're not allowed" good enough?

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    A wide-angle disintegration beam will hit you squarely in the chest if you don't... Like was mentioned in XML the elements and attributes are lower-case. Technically XHTML is an application of XML, unlike HTML 4.01, which is not case sensitive in that manner.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •