Changes

Jump to: navigation, search

Understanding Cascading Style Sheets (CSS)

370 bytes added, 17:23, 17 May 2007
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 &lt;H1&gt; tag:
 
<pre>
<h1 style="color: green;">This is a heading with a green style</h1>
</pre>
 
== Setting Styles using the ''id'' Attribute ==

Navigation menu