ta..." /> How To Use Class Selectors To Differentiate Tag Instances In CSS? ta..." /> ta..." />
Answers

Question and Answer:

  Home  Cascading Style Sheet CSS

⟩ How To Use Class Selectors to Differentiate Tag Instances in CSS?

A more reliable way to identify tag instances is to use the class attributes and class selectors. In the CSS example below, class="url" is added to <P> tags for Web addresses, with a new CSS definitions using a class selector "P.url". All three selectors match the Web address text, but the class selector "P.url" wins because of the cascading order rules. So you will see Web addresses in bold "sans-serif":

 168 views

More Questions for you: