34,333
edits
Changes
→Setting Styles for Indiviual Elements
== Setting Styles for 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 for just the current <H1P> tag:
<pre>
<p style="color: green;">This is a text paragraph</p>
</pre>
== Setting Styles using the ''id'' Attribute of an HTMl Element ==