HTML 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 more

HTML 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 more

How 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 more

How 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 more