CSS selectors by Alphabats
A ::after After is a pseudo element which is used for insert some text directly into webpage with out written in main html. CSS:- .button:after { content:"csszilla"; display:block;} HTML:- <a href="#" class="button"></a> ::before before is a pseudo element which is used for insert some text directly into website, same as after element. CSS:- .button:before { content:"csszilla"; display:block;} HTML:- <a href="#" class="button"></a> :active The :active pseudo selector is used to change the color of element when clicked or when element is activated. Generally :active is used in a tag in navigation etc. CSS:- ul li a.active { background-color:#333;} HTML:- <ul> <li> <a href="#" class="active">CSS ZILLA</a> </li> </ul> Attribute css has ability to target HTML based on their attribute. ...
Comments
Post a Comment