Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-26-2010, 10:18 PM   PM User | #1
Tony M
Regular Coder

 
Join Date: Jun 2010
Posts: 132
Thanks: 8
Thanked 0 Times in 0 Posts
Tony M is on a distinguished road
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?
Tony M is offline   Reply With Quote
Old 08-26-2010, 11:07 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,613
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 08-27-2010, 12:27 AM   PM User | #3
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
Far as I know the <h1> tag is suppoted by all browsers.
teedoff is offline   Reply With Quote
Old 08-27-2010, 03:31 AM   PM User | #4
Doctor_Varney
Regular Coder

 
Doctor_Varney's Avatar
 
Join Date: Mar 2008
Location: Midlands, UK
Posts: 649
Thanks: 45
Thanked 29 Times in 28 Posts
Doctor_Varney will become famous soon enough
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
__________________
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.

Last edited by Doctor_Varney; 08-27-2010 at 03:44 AM..
Doctor_Varney is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:06 AM.


Advertisement
Log in to turn off these ads.