Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The rules for valid characters and formatting in an ID attribute vary depending on the version of HTML you want to support. For specific details, look at the appropriate specifications: http://www.w3.org/Image Removed
To ensure compatibility with all versions of HTML, CSS and JavaScript libraries such as jQuery, you should stick to the following rules:

  • Must begin with a letter A-Z or a-z.
  • Can be followed by: letters (A-Za-z), digits (0-9), hyphens ("-"), and underscores ("_").