{"id":1873,"date":"2016-08-13T15:10:40","date_gmt":"2016-08-13T15:10:40","guid":{"rendered":"http:\/\/www.kodcafe.com\/?p=1873"},"modified":"2016-08-13T15:10:40","modified_gmt":"2016-08-13T15:10:40","slug":"id-ile-class-arasindaki-fark-nedir","status":"publish","type":"post","link":"https:\/\/www.kodcafe.com\/?p=1873","title":{"rendered":"HTML de ID ile CLASS aras\u0131ndaki fark nedir?"},"content":{"rendered":"<p>id genellikle tek bir nesne i\u00e7in  kullan\u0131l\u0131r. lakin bir cok nesne i\u00e7in css kullan\u0131lacak ise class kullan\u0131lmas\u0131 daha uygun olur..<\/p>\n<p>ID Nedir?<\/p>\n<p>ID &#8211; &#8220;Identity&#8221; kelimesinin k\u0131salt\u0131lm\u0131\u015f\u0131d\u0131r ve T\u00fcrk\u00e7e &#8220;Kimlik&#8221; anlam\u0131na gelmektedir. Tek bir varl\u0131\u011f\u0131 tan\u0131mlar. -\u00d6rne\u011fin; hepimizin bir kimlik numaras\u0131 vard\u0131r ve hi\u00e7biri ayn\u0131 de\u011fildir. HTML&#8217;de ID, tek bir element i\u00e7in kullan\u0131l\u0131r. &#8220;#&#8221; isareti ile tan\u0131mlan\u0131r.<!--more--><\/p>\n<pre lang=\"html\">\n  <div id=\"menu\">Anasayfa<\/div> \n<\/pre>\n<p>css deki veya style k\u0131sm\u0131ndaki kullan\u0131m\u0131<\/p>\n<pre lang=\"html\">\n<style>\n#menu{\nbackground-color: red } \n<\/style>\n\n<\/pre>\n<p>Class Nedir?<br \/>\nClass&#8217;larda ID&#8217;lere benzer lakin ama\u00e7lar\u0131 farkl\u0131d\u0131r. ID&#8217;nin aksine tek sayfa i\u00e7erisinde bir\u00e7ok kez tan\u0131mlanabilir.<br \/>\n&#8220;.&#8221; i\u015fareti ile tan\u0131mlan\u0131r.<\/p>\n<pre lang=\"html\">\n  <div class=\"menu\">Anasayfa<\/div> \n<\/pre>\n<pre lang=\"html\">\n<style>\n\n.menu { background-color: red; }\n    \n}\n\n<\/style><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>id genellikle tek bir nesne i\u00e7in kullan\u0131l\u0131r. lakin bir cok nesne i\u00e7in css kullan\u0131lacak ise class kullan\u0131lmas\u0131 daha uygun olur.. ID Nedir? ID &#8211; &#8220;Identity&#8221; kelimesinin k\u0131salt\u0131lm\u0131\u015f\u0131d\u0131r ve T\u00fcrk\u00e7e &#8220;Kimlik&#8221; anlam\u0131na gelmektedir. Tek bir varl\u0131\u011f\u0131 tan\u0131mlar. -\u00d6rne\u011fin; hepimizin bir kimlik numaras\u0131 vard\u0131r ve hi\u00e7biri ayn\u0131 de\u011fildir. HTML&#8217;de ID, tek bir element i\u00e7in kullan\u0131l\u0131r. &#8220;#&#8221; isareti [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1846,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[88,199,200],"class_list":["post-1873","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html","tag-class","tag-id","tag-id-ile-class-arasindaki-fark-nedir"],"_links":{"self":[{"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/1873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1873"}],"version-history":[{"count":0,"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=\/wp\/v2\/posts\/1873\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kodcafe.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}