Ok, so let’s say I am coding HTML/CSS template and I see that I need to create a text with certain color and text-shadow. Should I create a different style in css file or just add style to the element? This <span style="color: #f2f12; text-shadow: 0 2px 0 #f1f1f1">Text</span> or this <span class="styleforthistext">Text</span> is better practise? If I know that I will use this color only for this text (only once).
Ok, so let’s say I am coding HTML/CSS template and I see that I
Share
Your html layout should only contain data. All styling should be done in separate css files.
This is a good practice for many reasons.