34,333
edits
Changes
→Creating CSS Rules
P, H1, H2, H3 { font-style: italic; color: green }
</pre>
== Setting Styles Indiviual Elements ==
To set the style for an individual HTML element in a web page simply include the style rule inside the HTML tag. the following HTML tag specifies a color rule from just the current <H1> tag:
<pre>
<h1 style="color: green;">This is a heading with a green style</h1>
</pre>
== Setting Styles using the ''id'' Attribute ==