Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2010
    Thanked 0 Times in 0 Posts

    Question About Html (CSS) tags

    I heard that using numbers in the class or id (in CSS or HTML) is not supported in some Browsers. like using <h1> tag, cannot be supported because the 1 in it. So is this true?

  2. #2
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Halle (Saale), Germany
    Thanked 1,314 Times in 1,284 Posts
    No, numbers are perfectly fine. The only thing that’s fact is that you can’t use IDs or classes that start with a number.

  3. #3
    Senior Coder
    Join Date
    Aug 2010
    High Point, NC
    Thanked 363 Times in 360 Posts
    Far as I know the <h1> tag is suppoted by all browsers.

  4. #4
    Regular Coder Doctor_Varney's Avatar
    Join Date
    Mar 2008
    Midlands, UK
    Thanked 29 Times in 28 Posts
    Who on earth told you that?

    I've been on the internet more than fifteen years and H1, H2, H3 were the very first tags I learned to use. Of course they are supported in all browsers. Always have been, since prehistoric times.

    They stand for 'Heading One', Heading Two' and so forth... and should be placed in numerical order, to ensure semantic flow (apparently). They came long before CSS was born. The point is, you can style those tags up in CSS, like any other tag.

    Now, with ID and class, you can number them, like: #box_1 or .widget_5 etc. What you can't do is write anything like: #1-something or .6_anything because it wouldn't work. Don't ask me why, I have no idea.

    Dr. V
    Last edited by Doctor_Varney; 08-27-2010 at 04:44 AM.
    Definition: Computer rage is a heightened physiological response with associated feelings of anger and frustration[1] resulting from using a computer or other complex electronic device. It may result in the physical assault of the computer or similar item.[2] Computer use often leads to verbal abuse and occasionally physical violence towards the object.[3] Computer rage may be caused by distress due to a hardware or software problem which the enraged person is unable to correct.


Posting Permissions

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