34,333
edits
Changes
→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 from just the current <H1> tag:
<pre>
<h1 style="color: green;">A Heading</h1>
</pre>
== Setting Styles using the ''id'' Attribute of an HTMl Element ==