Professional Web Applications Themes

what is diference between<div> and <class>? - Brainstorming Area

what is diference between<div> and <class>?...

Sponsored Links
  1. #1

    Default what is diference between<div> and <class>?

    what is diference between<div> and <class>?
    Sponsored Links
    Ramesh is offline Junior Member
    Join Date
    Feb 2012
    Location
    gurgaon
    Posts
    2

  2. #2

    Default Re: what is diference between<div> and <class>?

    Quote Originally Posted by Ramesh View Post
    what is diference between<div> and <class>?
    div classs: like ID's, can also be used to in JavaScript scripts, but unlike ID's, they can be used multiple times in the same HTML doent. This separation of content from presentation is what makes sites powered by CSS more robust, but some don't know the full extent to which they can use classes.
    div id: Duplicate ID tags will cause your page to fail validation, and can have negative effects when using JavaScript with them. Simply put, an ID is like the sticker that says "you are here" on a mall directory, and there can only ever be one of those.
    Ramesh is offline Junior Member
    Join Date
    Feb 2012
    Location
    gurgaon
    Posts
    2

Similar Threads

  1. Replies: 0
    Last Post: September 20th, 10:16 PM
  2. Replies: 0
    Last Post: September 20th, 10:15 PM
  3. #25580 [Opn]: set_error_handler to a class/method resets class properties when error occurs
    By paul dot liversidge at recycledpixels dot com in forum PHP Development
    Replies: 0
    Last Post: September 17th, 08:07 PM
  4. #25580 [NEW]: set_error_handler to a class/method resets class properties when error occurs
    By paul dot liversidge at recycledpixels dot com in forum PHP Development
    Replies: 0
    Last Post: September 17th, 07:30 PM
  5. #23038 [Com]: PHP does not detect parent class inside child class' constructor
    By hewei at ied dot org dot cn in forum PHP Development
    Replies: 0
    Last Post: August 6th, 02:58 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139