css - Can non styled HTML elements make any type of problem in document flow or any cross browser problem? -


Should we write CSS in each element or just to style those elements?

Like for example

  & lt; Div id = "first" & gt; & Lt; Span class = "one" & gt; & Lt; A href = "#" & gt; Content text & lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div id = "second" & gt; & Lt; Span class = "two" & gt; & Lt; A href = "#" & gt; Content text & lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div id = "third" & gt; & Lt; Span class = "three" & gt; & Lt; A href = "#" & gt; Content text & lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt;  

I just want to show link text with one color. Can I write CSS for all elements?

If I only write CSS (....) and nothing defines for # and.

If you only need to apply the style to the link, you only have to type CSS for the link . If the class is not defined for the period or the div, then nothing technical will be wrong.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -