0

is it possible to give each paragraph or element an ID?

I was saying wondering since it is advisable to have a separate html doc and css doc is it possible to have all my elements/tags have unique ID so my CSS sheet can refer to particular points in the html doc? that way I don't use online CSS for the situations that I deviate from the overall style

26th Aug 2016, 8:36 AM
Fungai Makawa
Fungai Makawa - avatar
2 Respuestas
0
Possible
28th Aug 2016, 12:43 PM
Karthik Karthik
Karthik Karthik - avatar
0
Better use class inside an identifier <div id="container"> <p class="class1"></p> <p class="class2"></p> . . . <p class="classN"></p> </div> this way you can read and work the css way much better e.g #container > .class1{ blablabla } #container > .class2{ blablabla }
7th Sep 2016, 4:09 AM
Fabricio Bertani
Fabricio Bertani - avatar