Want to know

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buntybutt
    New Member
    • Sep 2008
    • 28

    Want to know

    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
  • eWish
    Recognized Expert Contributor
    • Jul 2007
    • 973

    #2
    You can name the ID what ever you want. It is best to use ID's that are descriptive.

    --Kevin

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5390

      #3
      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

      Comment

      Working...