CSS – Classes, IDs, Pseudo-classes and more…

CSS – Classes, IDs, Pseudo-classes and more…

Class You can create a name for a specific group of elements and then you can apply a style. Create a class Create a style for this class .myClass{ background-color: aquamarine;} id You can create a name for a specific element and then you can apply a style. <p id=”name”> I am KRONOS</p> #name{ color: blue; font-size: 2em;} Pseudo-classes Pseudo-classes permit formatting based on element’s state and not on information that lies on the document tree(tags). They should always be applied to an existing selector and you use: and then…

CSS – Classes, IDs, Pseudo-classes and more… Read More