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
Post a Comment