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. ...
HTML NOTES <img src="">:-image source name(web address or local address) for an image alt="">:-image url represent(Specifies an alternative text for an image ------------------------------------------------------------------------------------------------------------ <pre> element defines preformatted text. <small> element defines small text: <abbr>Marking abbreviations can give useful information to browsers, translation systems and search-engines. (<abbr title="World Health Organization">WHO</abbr>) --------------------------------------------------------------------------------------------------------------------------------------------------------- <bdo> elem...
Comments
Post a Comment