HTML’de id ve class Nitelikleri
Read moreHTML id etiketi ne işe yarar?
ID niteliği , bir HTML etiketi için benzersiz bir kimlik belirtir. Yani o etiket HTML belgesinde benzersiz olmalıdır. Bir etikete ID vermemizin sebebi ise , ID değeri CSS ve JavaScript tarafından belirtilen ID değerine sahip benzersiz bir etikete bazı görevler atamak için kullanılır.
Read moreHTML Class ne işe yarar?
class özelliği, nesneye bir veya birden fazla (aralarında boşluk bırakarak) sınıf atanmasını sağlar. Sınıflar genelde stil şablonlarından biçimlendirme getirmek amacıyla kullanılsa da, genel amaçla kullanılır.
Read moreHTML ID ve Class Nedir?
Div id bir sayfada belli bir bütünü biçimlendirir ve bu bütün için sayfada bir defa kullanılmalıdır. Bu div id bu bütünün ayrıcalığını belirtmelidir. Örnek olarak sol blok kısmının bütününde, sidebar kısmının bütününde gibi. Div class ise bir bütün için değilde genel ayarlamalar için kullanılır.
Read moreHow should classes be named?
Class names should be nouns, in mixed case with the first letter of each internal word capitalized . Try to keep your class names simple and descriptive. Use whole words-avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML).
Read moreHow should classes be named?
Class names should be nouns, in mixed case with the first letter of each internal word capitalized . Try to keep your class names simple and descriptive. Use whole words-avoid acronyms and abbreviations (unless the abbreviation is much more widely used than the long form, such as URL or HTML).
Read moreWhat are named classes?
A named class is simply a class that is assigned a string for its name , so that error messages, debuggers, etc provide more useful information. There is functionally no difference between named and anonymous classes.
Read more