0

What is Id and class name?

javascript

13th Dec 2016, 2:25 PM
caleb deng
caleb deng - avatar
3 Respuestas
0
you can give an html element (a, p, body, div, span , etc) an ID and/or (a) class(es). <div id="myID" class="class1 class2 class3"> you use the Ids and classes in css and js to modify the look/behavior of given elements.
13th Dec 2016, 2:34 PM
Lumpenstein
Lumpenstein - avatar
0
ID is only used for a div in part, a single div like <p id = "unico-Paragrafo> only this paragraph will contain this style </ p> already when using the class is used when styling various components containing The class name embedded as <p class = "k1"> kkkk </ p> <b class = "k1"> kkkk </ b> all that contains this class will be stylized in the same way.
13th Dec 2016, 2:54 PM
Otávio Guilherme Ferreira dos Santos
Otávio Guilherme Ferreira dos Santos - avatar
0
id and class are just attributes that we assign to the html tags
27th Dec 2016, 8:06 AM
Sergey