By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,480 Members | 1,240 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,480 IT Pros & Developers. It's quick & easy.

Want to know

P: 28
HI................
I am just learning how to design web pages. I just want to know that is there is only specific Id's for the <div> or i can use any Id within the <div>.
Thank You
Oct 4 '08 #1
Share this Question
Share on Google+
2 Replies


eWish
Expert 100+
P: 971
You can name the ID what ever you want. It is best to use ID's that are descriptive.

--Kevin
Oct 4 '08 #2

gits
Expert Mod 5K+
P: 5,390
just to point out that a restriction is that id's have to be unique in one document to avoid problems when using javascript later on. and since javascript is case-sensitive the id="foo" and id="Foo" or id="fOo" would be distinct. this is often a mistake made when starting to use id's correctly. besides their importance for javascript they are important for css-id-selector rules.

kind regards
Oct 5 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.