You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>It's best practice to not have too many inline <style> attributes in a webpage. Remember that CSS is meant to help keep the presentation layer seperate from the content layer.</p>
1340
-
<p>When you need to target certain containers, use the <code>id</code> attribute and put the CSS into the <code><style></code> tag. Use a <strong>hash</strong> to denote CSS selectors that are classes. e.g. <code>#centered_on_page</code></p>
1340
+
<p>When you need to target certain containers, use the <code>id</code> attribute and put the CSS into the <code><style></code> tag. Use a <strong>hash</strong> to denote CSS selectors that are ids. e.g. <code>#centered_on_page</code></p>
1341
1341
<p>You should only have one instance of an ID per page. Any more can cause errors in your page and CSS -- and even later, JavaScript.</p>
0 commit comments